/* =============================================
   SEGUROSPY - ESTILOS VIBRANTES Y ALEGRES
   Paleta: Verde Lima, Amarillo, Naranja, Azul, Morado, Fucsia
   ============================================= */

/* Variables CSS - Nueva Paleta Vibrante */
:root {
    /* Colores principales */
    --lime: #7FFF00;
    --lime-light: #ADFF2F;
    --lime-dark: #32CD32;

    --yellow: #FFD700;
    --yellow-light: #FFEC8B;
    --yellow-dark: #FFA500;

    --orange: #FF6B00;
    --orange-light: #FF8C42;
    --orange-dark: #E65100;

    --blue: #00BFFF;
    --blue-light: #87CEEB;
    --blue-dark: #1E90FF;

    --purple: #9B59B6;
    --purple-light: #BB8FCE;
    --purple-dark: #7D3C98;

    --fuchsia: #FF00FF;
    --fuchsia-light: #FF69B4;
    --fuchsia-dark: #C71585;

    /* Colores base */
    --white: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;

    --bg: #FFFFFF;
    --bg-alt: #F8F9FA;
    --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F0FFF0 50%, #FFFACD 100%);
    --bg-dark: #1A1A2E;

    --border: #E8E8E8;

    /* Gradientes vibrantes */
    --gradient-primary: linear-gradient(135deg, var(--lime) 0%, var(--yellow) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    --gradient-accent: linear-gradient(135deg, var(--orange) 0%, var(--fuchsia) 100%);
    --gradient-rainbow: linear-gradient(135deg, var(--lime), var(--yellow), var(--orange), var(--fuchsia), var(--purple), var(--blue));
    --gradient-hero: linear-gradient(135deg, var(--purple) 0%, var(--fuchsia) 50%, var(--orange) 100%);

    /* Sombras coloridas */
    --shadow: 0 4px 15px rgba(127, 255, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(155, 89, 182, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 0, 255, 0.3);

    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Bordes */
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* Fondo decorativo con formas coloridas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(127, 255, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-sm);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Decoraciones de texto */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-primary);
    opacity: 0.4;
    z-index: -1;
    border-radius: var(--radius-full);
}

/* Botones vibrantes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.5);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: var(--text);
    box-shadow: 0 4px 20px rgba(127, 255, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(127, 255, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--purple);
    color: var(--purple);
}

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

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Header con gradiente */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 4px solid transparent;
    border-image: var(--gradient-rainbow) 1;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(155, 89, 182, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    list-style: none;
    border: 2px solid var(--border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1), rgba(255, 215, 0, 0.1));
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* Hero espectacular */
.hero {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #F0FFF0 0%, #FFFACD 50%, #E6E6FA 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🛡️ 🏠 🚗 💚 🏥 ✨';
    position: absolute;
    font-size: 8rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.stat {
    text-align: center;
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    width: 400px;
    height: 400px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(155, 89, 182, 0.4);
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 3px dashed var(--fuchsia);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.hero-visual::after {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    top: 10%;
    right: 0;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes float {

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

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkle {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Servicios con tarjetas coloridas */
.services {
    padding: var(--space-2xl) 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: white;
    border: 3px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Cada card con su propio color */
.service-card:nth-child(1)::before {
    background: var(--lime);
}

.service-card:nth-child(2)::before {
    background: var(--blue);
}

.service-card:nth-child(3)::before {
    background: var(--fuchsia);
}

.service-card:nth-child(4)::before {
    background: var(--purple);
}

.service-card:nth-child(5)::before {
    background: var(--orange);
}

.service-card:nth-child(6)::before {
    background: var(--gradient-hero);
}

.service-card:nth-child(1):hover {
    border-color: var(--lime);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.2);
}

.service-card:nth-child(2):hover {
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

.service-card:nth-child(3):hover {
    border-color: var(--fuchsia);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.2);
}

.service-card:nth-child(4):hover {
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
}

.service-card:nth-child(5):hover {
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.service-card:nth-child(6):hover {
    border-color: var(--yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

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

.service-icon {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: var(--text-light);
    text-align: center;
    font-size: 0.95rem;
}

.service-card-cta {
    background: var(--gradient-hero);
    color: white;
    border-color: transparent;
}

.service-card-cta h3,
.service-card-cta p {
    -webkit-text-fill-color: white;
    background: none;
    color: rgba(255, 255, 255, 0.9);
}

/* Why Us - Características */
.why-us {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #F0FFF0 0%, #E6E6FA 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.feature {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature:nth-child(1):hover {
    border-color: var(--lime);
}

.feature:nth-child(2):hover {
    border-color: var(--blue);
}

.feature:nth-child(3):hover {
    border-color: var(--fuchsia);
}

.feature:nth-child(4):hover {
    border-color: var(--orange);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-hero);
    border-radius: var(--radius);
    color: white;
}

.feature h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
    color: var(--text);
}

.feature p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Formulario de contacto */
.contact-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #F0FFF0 0%, #FFFACD 50%, #E6E6FA 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--purple);
    margin-top: 3px;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

.checkbox a {
    color: var(--purple);
}

/* Zonas de servicio */
.zones {
    padding: var(--space-2xl) 0;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.zones::before {
    content: '📍';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.zones .section-title {
    -webkit-text-fill-color: white;
    background: none;
}

.zones .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.zones-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.zone-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.zone-tag:hover {
    background: white;
    color: var(--purple);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--lime);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-tech {
    margin-top: var(--space-xs);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 99;
    animation: pulse-whatsapp 2s infinite;
    transition: var(--transition);
}

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

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    background: var(--gradient-hero);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.5);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid var(--border);
}

.chat-header {
    background: var(--gradient-hero);
    color: white;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    background: linear-gradient(135deg, #F0FFF0 0%, #E6E6FA 100%);
}

.message {
    max-width: 80%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.message.bot {
    background: white;
    margin-right: auto;
    border: 2px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--gradient-hero);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-input {
    display: flex;
    padding: var(--space-sm);
    border-top: 2px solid var(--border);
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    margin-right: var(--space-xs);
    font-size: 0.95rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--purple);
}

.chat-input button {
    padding: 0.75rem 1.25rem;
    background: var(--gradient-hero);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.chat-input button:hover {
    transform: scale(1.05);
}

/* Comparador */
.comparador-page {
    padding: var(--space-2xl) 0;
    min-height: 80vh;
    background: linear-gradient(135deg, #F0FFF0 0%, #FFFACD 50%, #E6E6FA 100%);
}

.comparador-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparador-page .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    font-size: 1.2rem;
}

.comparador-form-container {
    max-width: 750px;
    margin: 0 auto;
}

.insurance-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.insurance-type input {
    display: none;
}

.insurance-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: white;
    border: 3px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.insurance-type input:checked+.insurance-card {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05), rgba(255, 0, 255, 0.05));
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.insurance-card:hover {
    border-color: var(--fuchsia);
    transform: translateY(-5px);
}

.insurance-card .icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
}

.insurance-card .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.form-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xl);
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
}

.step-dot.active {
    background: var(--gradient-hero);
    color: white;
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--gradient-primary);
    color: var(--text);
}

.step-line {
    width: 60px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
}

.step-success {
    text-align: center;
    padding: var(--space-xl);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: var(--space-md);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

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

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

.summary-box {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    border: 2px solid var(--border);
}

.summary-box p {
    margin-bottom: var(--space-xs);
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        width: 250px;
        height: 250px;
        font-size: 6rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

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

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

    .nav-links {
        display: none;
    }

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

    .insurance-types {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: calc(100vw - 60px);
        right: -15px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* =============================================
   IMÁGENES Y GALERÍA
   ============================================= */

/* Hero imagen */
.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

/* Imágenes de servicios */
.service-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    transition: var(--transition);
}

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

/* CTA especial sin imagen */
.cta-content {
    text-align: center;
    padding: var(--space-md);
}

.cta-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-sm);
}

/* Imágenes de características */
.feature-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

/* Galería Sierra */
.gallery {
    padding: var(--space-2xl) 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contacto con imagen */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-image {
    position: relative;
}

.contact-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.contact-badge span {
    font-size: 2rem;
}

.contact-badge p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* =============================================
   PRODUCTOS ESTRELLA
   ============================================= */

.featured-products {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #FFF0F5 0%, #E6E6FA 50%, #F0FFF0 100%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.featured-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    position: relative;
}

.featured-card::before {
    content: '⭐ DESTACADO';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--gradient-hero);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 10;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(155, 89, 182, 0.3);
}

.featured-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.featured-content {
    padding: var(--space-lg);
}

.featured-badge {
    display: inline-block;
    background: var(--gradient-hero);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.featured-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-card p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.featured-benefits {
    list-style: none;
    margin-bottom: var(--space-md);
}

.featured-benefits li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.featured-benefits li::before {
    content: '✓';
    color: var(--lime);
    font-weight: 700;
}

.featured-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple);
}

.featured-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Responsive galería y contacto */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-image {
        display: none;
    }

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

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