/* Variables CSS modernas */
:root {
    /* Paleta de colores cálida y profesional (Rosa Mexicano) */
    --primary-color: #e4007c;
    /* Rosa Mexicano vibrante */
    --primary-dark: #b80064;
    /* Rosa Mexicano oscuro para hover */
    --secondary-color: #fdf0f5;
    /* Fondo rosa muy tenue */
    --accent-color: #ff9f1c;
    /* Naranja dorado para contraste/estrellas */

    /* Grises y textos */
    --text-main: #1a1a1a;
    /* Casi negro para mejor contraste */
    --text-muted: #5e5e5e;
    --bg-body: #ffffff;
    /* Blanco puro */
    --bg-surface: #ffffff;

    /* WhatsApp */
    --color-wpp: #25D366;
    --color-wpp-hover: #128C7E;

    /* Sombras y UI */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(247, 92, 122, 0.15);

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Bases Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Utilidades de Diseño Responsivo */
.container {
    /* Anchura fluida con márgenes seguros */
    width: clamp(280px, 90%, 1200px);
    margin: 0 auto;
}

.section-padding {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

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

.mt-3 {
    margin-top: 1.5rem;
}

.w-full {
    width: 100%;
    justify-content: center;
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Tipografía Responsiva mediante Clamp */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.125rem);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.section-header p {
    color: var(--text-muted);
}

/* Botones con efectos Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.2rem, 3vw, 1.8rem);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-large {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 92, 122, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 92, 122, 0.4);
}

.btn-whatsapp {
    background-color: var(--color-wpp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--color-wpp-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Animaciones de Entrada */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Navbar Premium (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(0.8rem, 2vw, 1.2rem) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-main);
}

.nav-btn span {
    display: inline;
}

@media (max-width: 480px) {
    .nav-btn span {
        display: none;
        /* Hide word on very small screens, keep icon */
    }

    .nav-btn {
        padding: 0.6rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }

    .nav-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* Hero Section Modificado (No imagen de fondo) */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    color: var(--text-main);
}

.hero .badge {
    display: inline-block;
    background: rgba(228, 0, 124, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Imagen y Wrapper del Hero */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background-color: var(--bg-surface);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flotadores en la imagen premium */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--accent-color);
}

.badge-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.shape-divider .shape-fill {
    fill: var(--bg-body);
}

@media (min-width: 768px) {
    .shape-divider svg {
        height: 100px;
    }
}

/* Grid Inteligente (Catálogo) */
.catalog-grid {
    display: grid;
    /* Automágicamente crea columnas responsivas, mínimo 280px */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    /* Ratio 4:3 para imágenes */
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Cómo Funciona (Steps) */
.how-it-works {
    background-color: var(--secondary-color);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.step-box {
    background: var(--bg-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
}

.step-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.step-connector {
    display: none;
    /* Oculto en móvil */
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Responsividad para Steps en pantallas grandes */
@media (min-width: 900px) {
    .steps-container {
        flex-direction: row;
        justify-content: center;
    }

    .step-connector {
        display: block;
    }
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    color: var(--secondary-color);
    font-size: 3rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    opacity: 0.5;
}

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

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.bg-pink {
    background-color: var(--primary-color);
}

.bg-blue {
    background-color: #4361ee;
}

.bg-yellow {
    background-color: var(--accent-color);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: var(--transition);
}

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

.accordion-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.accordion-item.active .accordion-header {
    background-color: var(--secondary-color);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

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

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.faq-cta {
    margin-top: clamp(2rem, 5vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: white;
}

.footer-slogan {
    color: #a0aec0;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Floating WhatsApp Premium */
.floating-wpp {
    position: fixed;
    bottom: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    background-color: var(--color-wpp);
    color: white;
    width: clamp(50px, 6vw, 65px);
    height: clamp(50px, 6vw, 65px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wpp:hover {
    transform: scale(1.1) rotate(-5deg);
    background-color: var(--color-wpp-hover);
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-wpp);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media (max-width: 350px) {
    .product-img-wrapper {
        padding-top: 100%;
        /* Imágenes más cuadradas en móviles chicos */
    }
}