/* ========================================
   Sábanas Nocturna - Styles
   ======================================== */

:root {
    --dark: #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray: #666666;
    --gray-light: #e5e5e5;
    --white: #ffffff;
    --off-white: #fafafa;
    --accent: #8b7355;
    --accent-hover: #6d5a42;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
    color: var(--dark);
    display: block;
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Placeholder for logo if image doesn't exist */
.site-logo[src*="logo.png"]:not([src]) {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="50"><rect width="150" height="50" fill="%23f0f0f0"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="%23999" font-family="sans-serif" font-size="10">LOGO AQUÍ</text></svg>');
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: 4px;
    border: 2px dashed var(--gray-light);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-distribuidor {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.8rem 1.8rem !important;
    border-radius: 4px;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

.btn-distribuidor::after {
    display: none !important;
}

.btn-distribuidor:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 2rem 5%;
}

.mobile-menu ul li {
    margin-bottom: 1.5rem;
}

.mobile-menu ul li a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: var(--dark);
}

.btn-distribuidor-mobile {
    display: block;
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 1rem !important;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
}

/* ========================================
   WhatsApp Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    color: var(--white);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding: 10rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--dark);
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 500px;
    font-weight: 300;
}

.hero-image {
    width: 100%;
    height: 600px;
    background: var(--off-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    text-align: center;
    padding: 2rem;
}

.image-placeholder::before {
    content: '📸';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

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

.btn-primary:hover {
    background: var(--gray-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
    margin-left: 1rem;
}

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

/* ========================================
   Sections
   ======================================== */
section {
    padding: 8rem 5%;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 6rem;
    text-align: center;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--gray);
    font-weight: 300;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 500px;
    background: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '—';
    color: var(--accent);
}

/* ========================================
   Products Section
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 400px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.product-info {
    padding: 0 1rem 2rem;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.product-tagline {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 0.7rem 0;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ========================================
   Pack Section
   ======================================== */
.pack-section {
    background: var(--dark);
    color: var(--white);
}

.pack-section .section-label {
    color: var(--accent);
}

.pack-section .section-title {
    color: var(--white);
}

.pack-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.pack-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.pack-image {
    width: 100%;
    height: 500px;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.pack-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 300;
}

.pack-includes {
    list-style: none;
    margin: 2rem 0;
}

.pack-includes li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.pack-content .btn-primary {
    background: var(--white);
    color: var(--dark);
    margin-top: 1rem;
}

.pack-content .btn-primary:hover {
    background: var(--off-white);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    text-align: center;
    padding: 10rem 5%;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Form Section
   ======================================== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--off-white);
    padding: 3rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--off-white);
    padding: 6rem 5% 3rem;
    border-top: 1px solid var(--gray-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.dev-credit {
    margin-top: 1rem;
}

.dev-credit a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dev-credit a:hover {
    color: var(--accent-hover);
}

/* ========================================
   Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero,
    .about-grid,
    .pack-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero,
    section {
        padding: 4rem 5%;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }
}