:root {
    --primary: #e91e63; /* Rosa vibrante */
    --accent: #4caf50; /* Verde floral */
    --dark: #2d3436;
    --light: #fff5f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body { font-family: 'Lato', sans-serif; color: var(--dark); background: #fff; padding-top: 70px; }

h1, h2, .logo { font-family: 'Playfair Display', serif; }

section { scroll-margin-top: 80px; }

.section-title { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-top: 4rem; 
    margin-bottom: 2rem; 
}

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('imagenflor3.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 5%;
    padding-bottom: 15vh; /* Ajusta este valor para subir o bajar el texto */
}

/* Navbar Fija */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    padding: 1rem 5%; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000; 
}
.logo { 
    display: flex;
    align-items: center;
}

/* Estilo para que el logo se vea horizontal y proporcional */
.logo img { height: 50px; width: auto; object-fit: contain; }

.nav-right { display: flex; align-items: center; gap: 15px; }
.social-nav { display: flex; gap: 10px; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: bold; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Iconos sociales en la navbar */
.nav-social { height: 20px; width: auto; opacity: 0.8; transition: transform 0.3s, opacity 0.3s; display: block; }
.nav-social:hover { transform: scale(1.1); opacity: 1; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

.hero-content { text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content h1 span { color: #ff85a2; font-style: italic; }
.hero-content p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.2rem; }

.btn-main { background: var(--primary); color: white; padding: 1rem 2rem; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem; }
.btn-wa-urgent { background: var(--primary) !important; }

/* Botón Ver Más */
.view-more-container { 
    text-align: center; 
    margin: 2rem 0 4rem 0; 
    width: 100%;
}

/* Categorías en Catálogo */
.catalog-categories {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-accordion {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: color 0.3s;
}

.category-header:hover { color: var(--primary); }
.category-header h2 { font-size: 1.8rem; margin: 0; }
.toggle-icon { font-size: 1.2rem; transition: transform 0.3s; }
.category-accordion.active .toggle-icon { transform: rotate(180deg); }

.category-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.category-accordion.active .category-body { max-height: 5000px; padding-bottom: 2rem; }

.sub-category-title { margin: 2rem 0 1rem; color: var(--dark); font-style: italic; opacity: 0.8; }

/* Carrusel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 2%;
}

.carousel-nav {
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover { background: var(--primary); color: white; transform: scale(1.1); }
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 2rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.product-card {
    min-width: 300px;
    min-width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    scroll-snap-align: start;
}

.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 15px 15px 0 0; }

.card-info { padding: 1.5rem; text-align: center; }
.card-info h3 { margin-bottom: 0; } /* Eliminamos el margen por defecto para controlar el centrado */

/* Estilos para la tarjeta CTA */
.cta-card { 
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('gir1.jpg') center/cover;
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    min-height: 450px; /* Ajuste para mantener simetría con las fotos cuadradas */
}
.cta-card h3 { color: white; margin-bottom: 1rem; }
.cta-card .cta-icon { font-size: 3rem; margin-bottom: 1rem; }
.btn-cta { background: white !important; color: var(--primary) !important; font-weight: bold; }

.price { display: block; font-weight: bold; font-size: 1.2rem; color: var(--primary); margin-bottom: 1rem; }

/* Etiqueta de Urgencia */
.badge-urgency {
    color: #ff0000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    background: #fff0f0;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin: 12px 0; /* Centrado vertical perfecto con 12px arriba y abajo */
    border: 1px solid #ff0000;
    animation: blink-urgency 1.5s infinite;
}

@keyframes blink-urgency {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); background-color: #ffdce0; } /* Animación más pronunciada */
    100% { opacity: 1; transform: scale(1); }
}

.btn-wa-card { background: #25D366; color: white; border: none; padding: 0.8rem; border-radius: 8px; width: 100%; cursor: pointer; }

/* About Us */
.about-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 20px; padding: 5rem 5%; background: var(--light); }

.side-photo img { width: 100%; height: 500px; object-fit: cover; border-radius: 100px; }
.about-text { text-align: center; padding: 0 2rem; }
.about-text h2 { margin-bottom: 1.5rem; font-size: 2rem; }

/* Testimonials */
.testimonials { padding: 5rem 5%; background: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.comment-card { padding: 2rem; border-left: 4px solid var(--primary); background: var(--light); border-radius: 0 15px 15px 0; }
.comment-card span { display: block; margin-top: 1rem; font-weight: bold; }

/* Cuadrícula de capturas de Chat */
.chat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
    justify-content: center;
    gap: 15px;
    margin-top: 3rem;
}

.chat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.chat-card:hover { transform: translateY(-5px); }

.chat-card img { width: 100%; height: auto; display: block; }

/* CTA Section */
.cta-section { padding: 5rem 5%; text-align: center; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('imagenflor4.jpg') center/cover; color: white; }
.wa-direct { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.btn-wa-large { 
    display: inline-block; 
    background: #25D366; 
    color: white; 
    padding: 1rem 2rem; 
    text-decoration: none; 
    border-radius: 50px; 
    margin-top: 1rem; 
    font-weight: bold; 
}

.cta-form { max-width: 500px; margin: 2rem auto; display: flex; flex-direction: column; gap: 10px; }

.cta-form input, .cta-form textarea { padding: 1rem; border-radius: 8px; border: none; font-family: 'Lato', sans-serif; }
.cta-form textarea { resize: vertical; min-height: 100px; }

.btn-submit { background: var(--primary); color: white; border: none; padding: 1rem; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* Location */
.location { padding: 0 5% 5rem; }
.location .section-title { margin-top: 1rem; }
.map-container { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Horarios */
.hours-section {
    padding: 2rem 5% 0;
    text-align: center;
    background: #fff;
}
.hours-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light);
    border: 1px solid rgba(233, 30, 99, 0.1);
}
.hours-container h3 { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 1rem; }
.hours-list p { margin: 0.5rem 0; font-size: 1.1rem; }

/* Footer */
.footer { padding: 3rem 5%; text-align: center; border-top: 1px solid #eee; }

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed !important; 
    width: 60px !important;     /* Asegura el ancho correcto */
    height: 60px !important;    /* Asegura la altura correcta */
    bottom: 20px !important;
    right: 20px !important;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    /* font-size: 30px; -- No es necesario ya que no hay texto dentro del botón */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex; /* Se define una vez aquí */
    align-items: center;
    justify-content: center;
    animation: pulse-wa 2s infinite;
    overflow: hidden; /* Evita que la imagen se salga si es muy grande */
}

.whatsapp-float img { width: 100% !important; height: 100% !important; object-fit: cover; } /* Ajusta la imagen al círculo */

@keyframes pulse-wa {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } /* Ajuste sutil en la animación de pulso */
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    /* Escalado General (Reducción al ~50%) */
    body { font-size: 0.7rem; padding-top: 50px; }
    h2.section-title { font-size: 1.1rem; margin-top: 1rem; margin-bottom: 0.6rem; }
    section { scroll-margin-top: 60px; }
    
    /* Navbar con Hamburguesa */
    .navbar { padding: 0.4rem 4%; height: 50px; }
    .logo img { height: 30px; }
    .nav-social { height: 15px; }
    .menu-toggle { display: block; margin-left: 5px; }

    .nav-links { 
        display: none; /* Oculto por defecto */
        position: absolute; top: 50px; right: 0; width: 100%;
        background: white; flex-direction: column; padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); gap: 10px;
    }
    .nav-links.active { display: flex; }

    /* Header - Altura reducida */
    .hero { height: 38vh; padding-bottom: 1vh; }
    .hero-content h1 { font-size: 1.2rem; }
    .hero-content p { font-size: 0.7rem; margin-bottom: 0.8rem; max-width: 250px; }
    .btn-main { padding: 0.5rem 1rem; font-size: 0.7rem; }

    /* Colección - Carrusel más pequeño */
    .product-card { min-width: 140px; border-radius: 8px; }
    .product-card img { height: 140px; }
    .card-info { padding: 0.6rem; }
    .card-info h3 { font-size: 0.7rem; margin-bottom: 0; }
    .card-info p { font-size: 0.6rem; }
    .price { font-size: 0.8rem; margin-bottom: 0.4rem; }
    .btn-wa-card { padding: 0.4rem; font-size: 0.6rem; border-radius: 4px; }
    .cta-card { min-height: 230px; }
    .cta-card .cta-icon { font-size: 1.5rem; }

    /* Nuestra Esencia - Mantener 3 columnas */
    .about-us { padding-bottom: 0; }
    .about-grid { 
        grid-template-columns: 0.7fr 1.6fr 0.7fr; 
        gap: 8px; padding: 1rem 2%; 
    }
    .side-photo img { height: 130px; border-radius: 20px; }
    .about-text { padding: 0 0.5rem; }
    .about-text h2 { font-size: 1rem; margin-bottom: 0.3rem; }
    .about-text p { font-size: 0.6rem; line-height: 1.2; }

    /* Testimonios - Reducción de espacios */
    .testimonials { padding: 1.5rem 5% 1rem; }
    .testimonial-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .comment-card { padding: 0.6rem; font-size: 0.6rem; border-left-width: 2px; }
    .chat-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 1.5rem; }
    .chat-card { border-radius: 6px; }

    /* Contacto - Imagen enfocada en la flor y balance de elementos */
    .cta-section { padding: 2rem 4%; background-position: left center !important; }
    .cta-section h2 { font-size: 1.1rem; }
    .cta-section p { font-size: 0.65rem; margin-bottom: 0.2rem; }
    .cta-form { max-width: 80%; gap: 5px; margin: 0.8rem auto; }
    .cta-form input, .cta-form textarea { padding: 0.6rem; font-size: 0.7rem; border-radius: 5px; }
    .cta-form textarea { min-height: 60px; }
    .btn-submit { padding: 0.6rem; font-size: 0.7rem; }
    .wa-direct { margin-top: 1rem; padding-top: 1rem; }
    .btn-wa-large { padding: 0.6rem 1.2rem; font-size: 0.75rem; margin-top: 0.5rem; } /* No se modificó, pero se mantiene para contexto */
    .hours-container { padding: 0.8rem; margin: 0 4%; border-radius: 10px; }

    .whatsapp-float { width: 50px !important; height: 50px !important; bottom: 15px !important; right: 15px !important; z-index: 9999; }
}