/* Variables para colores */
:root {
    --color-primary: #f8c1d8; /* Rosa pastel */
    --color-secondary: #7d4f3f; /* Chocolate */
    --color-light: #fff1f6; /* Rosa muy claro */
    --color-dark: #3e3028; /* Chocolate oscuro */
    --color-text: #534741; /* Texto principal */
    --color-accent: #e290b2; /* Rosa acento */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
    --header-height: 70px; /* Altura estándar del header */
    --header-height-mobile: 50px; /* Altura del header en móvil */
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--color-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-dark);
    transform: translateY(-3px);
}

.coming-soon {
    font-size: 0.7rem;
    display: block;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 3px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-secondary);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--color-secondary);
    transition: all 0.3s ease;
}

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

/* Header optimizado para móviles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: var(--header-height);
}

/* Header compacto al hacer scroll */
header.scrolled {
    height: calc(var(--header-height) - 10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--color-accent);
}

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

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

.logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: font-size 0.3s ease;
}

header.scrolled .logo {
    font-size: 1.8rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
}

header.scrolled .logo-image {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: inline-block;
}

.centered {
    margin: 0 auto;
}

/* Hero Section */
/* Menú hamburguesa para móviles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 5px;
}

.hero {
    padding-top: calc(var(--header-height) + 1rem);
    background-color: var(--color-primary);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--color-secondary);
}

/* Features Section */
.features {
    background-color: white;
}

.features .container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Products Section */
.products {
    background-color: var(--color-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card h3, .product-card p {
    padding: 0 1.5rem;
}

.product-card p {
    flex-grow: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.product-card h3 {
    margin-top: 1.5rem;
}

.product-card .btn-secondary {
    margin: 1.5rem;
    display: inline-block;
    align-self: center;
}

/* Estilos para los cuadros informativos */
.product-card.info-card {
    background-color: #fff1f6;
    border: 2px dashed var(--color-primary);
}

.product-card.info-card p {
    font-style: italic;
    text-align: justify;
    padding-bottom: 1.5rem; /* Para compensar el espacio que ocuparía el botón */
}

/* About Section */
.about {
    background-color: white;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: -20px 20px 0 var(--color-primary);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-primary);
    padding: 5rem 0;
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
}

.testimonial {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-secondary);
}

/* Contact Section */
.contact {
    background-color: var(--color-light);
    padding: 5rem 0;
}

.contact-simple {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--color-text);
}

.contact-email {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-email i {
    margin-right: 0.5rem;
    color: var(--color-secondary);
}

.contact-email a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px; /* Tamaño para los iconos */
    margin: 0 10px; /* Espaciado entre iconos */
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-counter {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

#contador {
    font-weight: bold;
    color: var(--color-primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero .container,
    .about .container {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .features .container {
        flex-direction: column;
    }
    
    .contact .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header móvil optimizado */
    header {
        height: var(--header-height-mobile);
        padding: 0;
        position: sticky;
        top: 0;
    }
    
    header.scrolled {
        height: var(--header-height-mobile);
    }
    
    header .container {
        padding: 0 10px;
        position: relative;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    header.scrolled .logo {
        font-size: 1.5rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    header.scrolled .logo-image {
        width: 30px;
        height: 30px;
    }
    
    /* Menú móvil más compacto */
    .menu-toggle {
        display: block;
        padding: 2px;
        font-size: 1.3rem;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height-mobile));
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--color-light);
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Ajustar secciones para móvil */
    .hero {
        padding-top: calc(var(--header-height-mobile) + 1rem);
    }
    
    .category-detail {
        padding-top: calc(var(--header-height-mobile) + 1rem) !important;
    }
    
    /* Scroll suave con menos resistencia */
    body {
        scroll-padding-top: var(--header-height-mobile);
    }
    
    .hero .container {
        padding: 0 15px;
    }
    
    /* Imagen hero visible en móviles */
    .hero-image {
        margin-top: 1rem;
        width: 100%;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0 auto;
        display: block;
        box-shadow: 10px 10px 0 var(--color-secondary);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Añadir espacio adicional entre filas en móvil */
    .product-grid > .product-card:nth-child(3) {
        margin-bottom: 2rem;
    }
    
    .about .container {
        padding: 0 15px;
    }
    
    .contact-simple {
        padding: 2rem 1rem;
    }
    
    .contact-email {
        font-size: 1.3rem;
        word-break: break-word;
    }
    
    .feature {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .testimonial-slider {
        flex-direction: column;
    }
    
    .testimonial {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 2.2rem;
    }
    
    h1 {
        font-size: 1.9rem;
    }
    
    .btn, .btn-secondary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .coming-soon {
        font-size: 0.6rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-icon {
        font-size: 2.2rem;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
    
    .hero-image img {
        box-shadow: 10px 10px 0 var(--color-secondary);
    }
    
    /* Asegurar que los párrafos largos se ajusten bien */
    p {
        word-wrap: break-word;
    }
    
    .contact-message {
        font-size: 1rem;
    }
    
    .product-card {
        margin: 0 10px;
    }
}