/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Colores */
    --color-bg: #F5F2EA;
    /* Crema suave */
    --color-text: #111111;
    /* Negro carbón */
    --color-text-light: #555555;
    --color-accent: #C6A75E;
    /* Dorado/Ámbar */
    --color-white: #ffffff;
    --color-border: #e0e0e0;

    /* Tipografía */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Contenedor */
    --container-width: 1200px;

    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Navbar */
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   UTILITIES & COMPONENTS
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text);
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: var(--spacing-sm) auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-text);
    padding: 0;
    text-decoration: underline;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    text-transform: none;
}

.btn-link:hover {
    color: var(--color-accent);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* =========================================
   TOPBAR & NAVBAR
   ========================================= */
.topbar {
    background-color: var(--color-text);
    color: var(--color-bg);
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-bg);
    padding: 1rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.nav-links li a:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 10px 24px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-color: #111;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   COLLECTION SECTION
   ========================================= */
.collection {
    background-color: var(--color-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    transition: var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    background-color: #fff;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    padding: 10px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 4px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* =========================================
   ORIGINALITY SECTION
   ========================================= */
.originality {
    background-color: var(--color-bg);
    overflow: hidden;
}

.originality-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.originality-content {
    flex: 1;
}

.originality-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.separator-left {
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
}

.text-left {
    text-align: left;
}

.lead-text {
    font-size: 1.2rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    color: #333;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list .icon {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* Certificate Card Styling */
.certificate-card {
    background: #fff;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease;
}

.certificate-card:hover {
    box-shadow: 0 30px 60px rgba(198, 167, 94, 0.15);
    border-color: rgba(198, 167, 94, 0.3);
    transform: translateY(-5px);
}

.cert-header {
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-header span:first-child {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #888;
}

.brand-small {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
}

.cert-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px dotted #eee;
    padding-bottom: 0.5rem;
}

.cert-row .label {
    color: #888;
    font-size: 0.75rem;
}

.cert-signature {
    margin-top: 3rem;
    text-align: center;
}

.cert-signature p {
    font-family: 'Great Vibes', cursive;
    /* Fallback to cursive if not loaded */
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.signature-line {
    border-top: 1px solid #333;
    display: inline-block;
    padding-top: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--color-accent);
    font-weight: 700;
    opacity: 0.8;
}

/* =========================================
   BENEFITS SECTION
   ========================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.benefit-item {
    padding: 2rem;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* =========================================
   STORY SECTION
   ========================================= */
.story {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 6rem 0;
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
}

.overline {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.display-title {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    color: #fff;
}

.story p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials {
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fdfdfd;
    padding: 2rem;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 4px;
}

.stars {
    color: var(--color-accent);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.quote {
    font-style: italic;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    color: #444;
}

.author {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq {
    background-color: var(--color-bg);
}

.faq-container {
    max-width: 800px;
}

.accordion {
    margin-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #d0d0d0;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--color-accent);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* =========================================
   CTA FINAL SECTION
   ========================================= */
.cta-final {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cta-bg.jpg');
    background-color: #222;
    /* Fallback */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #111;
    color: #fff;
    padding-top: 5rem;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.support-email {
    color: var(--color-white);
    text-decoration: underline;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #111;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* =========================================
   MOBILE CTA & RESPONSIVE
   ========================================= */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
}

.mobile-cta .btn {
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

@media (max-width: 900px) {
    .originality-container {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In real implementation, add JS toggle */
    }

    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        margin-bottom: 5px;
    }

    .mobile-cta {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}