/**
 * INSURTECH PRO - CSS MOBILE APP STYLE
 * VERSION: 5.0 - ULTRA COMPACTO
 * MÓVIL: Hero más pequeño + Footer solo copyright
 * DESKTOP: Diseño original morado/gradientes
 */

/* ============================================
   RESET Y VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores Desktop (Morado) */
    --primary-desktop: #6366f1;
    --secondary-desktop: #8b5cf6;
    
    /* Colores Mobile (Azul/Turquesa) */
    --blue-header: #1a73e8;
    --turquoise: #00d4ff;
    --turquoise-dark: #00b8d4;
    --light-bg: #f5f9fc;
    --white: #ffffff;
    
    /* Colores generales */
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    
    /* Gradientes */
    --gradient-hero-desktop: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-turquoise: linear-gradient(135deg, #00d4ff 0%, #00b8d4 100%);
    
    /* Spacing */
    --container-padding: 20px;
    --section-padding: 60px 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   NAVBAR - Responsive
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-turquoise);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menú móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: var(--gradient-turquoise);
    border: none;
    border-radius: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-turquoise);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-desktop);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-admin {
    background: var(--gradient-turquoise);
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* ============================================
   HERO SECTION - DESKTOP (Morado)
   ============================================ */
.hero {
    background: var(--gradient-hero-desktop);
    color: white;
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-highlight {
    color: var(--warning);
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

/* Estadísticas hero */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 35px auto 25px;
    max-width: 500px;
}

.stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--warning);
    color: var(--dark);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    margin-top: 10px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
    background: #fcd34d;
}

.btn-cta i {
    font-size: 1.2rem;
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    opacity: 0.9;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.badge i {
    font-size: 1rem;
}

/* ============================================
   TIPOS DE SEGUROS - DESKTOP
   ============================================ */
.tipos-seguros {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #fafbff 0%, #f5f7ff 100%);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 45px;
    font-weight: 400;
}

.seguros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.seguro-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.seguro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-turquoise);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.seguro-card:hover::before {
    transform: scaleX(1);
}

.seguro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.7rem;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.seguro-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.seguro-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
}

.seguro-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-desktop);
    margin-top: auto;
}

.card-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
}

.seguro-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Colores específicos por tipo de seguro */
.seguro-card[href*="salud"] .card-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.seguro-card[href*="vida"] .card-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.seguro-card[href*="vehiculo"] .card-icon {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.seguro-card[href*="comercial"] .card-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.seguro-card[href*="garantia"] .card-icon {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.seguro-card[href*="dental"] .card-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.seguro-card[href*="mascotas"] .card-icon {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 50px 0 25px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--turquoise);
}

.footer-col p {
    opacity: 0.85;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: inline-block;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--turquoise);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - MÓVIL (DISEÑO APP MODERNO)
   ============================================ */

/* MÓVIL - DISEÑO APP AZUL/TURQUESA/BLANCO */
@media (max-width: 768px) {
    
    /* NAVBAR MÓVIL - Azul limpio */
    .navbar {
        background: var(--blue-header);
        border-bottom: none;
        box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
    }
    
    .logo-text {
        color: white !important;
        background: none;
        -webkit-text-fill-color: white;
    }
    
    .nav-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-links {
        position: fixed;
        top: 69px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 69px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px;
        transition: left 0.3s;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #f3f4f6;
        text-align: left;
    }
    
    /* HERO MÓVIL - ULTRA COMPACTO */
    .hero {
        background: var(--blue-header);
        padding: 10px 0 15px;
        min-height: auto;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-content {
        text-align: center;
    }
    
    /* Logo móvil ultra compacto */
    .hero-logo {
        margin-bottom: 8px;
    }
    
    .hero-logo img {
        max-width: 130px;
        filter: brightness(0) invert(1);
    }
    
    /* Indicadores Step y Time - más compactos */
    .hero-indicators {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 0 10px;
    }
    
    .step-indicator {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        padding: 6px 18px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        backdrop-filter: blur(10px);
    }
    
    .time-indicator {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        backdrop-filter: blur(10px);
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
        color: white;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.95);
    }
    
    /* Ocultar estadísticas en móvil */
    .hero-stats,
    .btn-cta,
    .trust-badges {
        display: none;
    }
    
    /* SECCIÓN DE SEGUROS MÓVIL */
    .tipos-seguros {
        background: var(--light-bg);
        padding: 18px 15px 28px;
    }
    
    .section-title {
        font-size: 1.5rem;
        color: var(--dark);
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }
    
    /* Grid de seguros móvil - 2 columnas */
    .seguros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* TARJETAS MÓVIL - Bordes turquesa estilo app */
    .seguro-card {
        background: white;
        border: 2px solid var(--turquoise);
        border-radius: 12px;
        padding: 18px 12px;
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
    }
    
    .seguro-card::before {
        display: none;
    }
    
    .seguro-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
        border-color: var(--turquoise-dark);
    }
    
    /* Iconos móvil */
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin: 0 auto 12px;
        border-radius: 12px;
    }
    
    .seguro-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
        text-align: center;
        color: var(--dark);
    }
    
    .seguro-card p {
        font-size: 0.8rem;
        text-align: center;
        color: #9ca3af;
        margin-bottom: 0;
    }
    
    /* Ocultar precio en móvil */
    .card-price,
    .card-arrow {
        display: none;
    }
    
    /* BOTÓN NEXT MÓVIL */
    .mobile-next-btn {
        display: block;
        background: var(--gradient-turquoise);
        color: white;
        text-align: center;
        padding: 16px;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 700;
        text-decoration: none;
        margin: 30px auto 0;
        max-width: 400px;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
        transition: all 0.3s;
    }
    
    .mobile-next-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    }
    
    /* FOOTER MÓVIL - SOLO COPYRIGHT */
    .footer {
        padding: 12px 0;
        background: #2d3748;
    }
    
    .footer::before {
        display: none;
    }
    
    /* Ocultar todo el contenido del footer en móvil */
    .footer-content {
        display: none;
    }
    
    /* Solo mostrar el copyright */
    .footer-bottom {
        padding-top: 0;
        border-top: none;
        font-size: 0.75rem;
        opacity: 0.9;
    }
}

/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .seguro-card {
        padding: 16px 10px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .seguro-card h3 {
        font-size: 0.95rem;
    }
    
    .seguro-card p {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* ============================================
   TABLET (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .seguros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .seguro-card {
        padding: 28px;
    }
    
    .card-icon {
        width: 68px;
        height: 68px;
        font-size: 2.1rem;
    }
    
    .seguro-card h3 {
        font-size: 1.35rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

/* ============================================
   DESKTOP (más de 1024px) - DISEÑO MORADO
   ============================================ */
@media (min-width: 1025px) {
    :root {
        --container-padding: 40px;
        --section-padding: 80px 40px;
    }

     /* HERO DESKTOP más compacto */
    .hero {
        padding: 30px 0 15px; /* 🔥 Reducido a la mitad */ 
        min-height: 50vh;     /* 🔥 Altura visual a la mitad */
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 20px;
    }
    
    .seguros-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .seguro-card {
        padding: 32px;
    }
    
    .card-icon {
        width: 75px;
        height: 75px;
        font-size: 2.4rem;
        margin-bottom: 20px;
    }
    
    .seguro-card h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .seguro-card p {
        font-size: 0.95rem;
    }
    
    .card-price {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    /* Ocultar indicadores móvil en desktop */
    .hero-indicators,
    .mobile-next-btn {
        display: none;
    }
}

/* Desktop Grande (más de 1440px) */
@media (min-width: 1441px) {
    .card-icon {
        width: 85px;
        height: 85px;
        font-size: 2.8rem;
    }
    
    .seguro-card {
        padding: 38px;
    }
    
    .seguro-card h3 {
        font-size: 1.65rem;
    }
    
    .seguro-card p {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.seguro-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.seguro-card:nth-child(1) { animation-delay: 0.1s; }
.seguro-card:nth-child(2) { animation-delay: 0.15s; }
.seguro-card:nth-child(3) { animation-delay: 0.2s; }
.seguro-card:nth-child(4) { animation-delay: 0.25s; }
.seguro-card:nth-child(5) { animation-delay: 0.3s; }
.seguro-card:nth-child(6) { animation-delay: 0.35s; }
.seguro-card:nth-child(7) { animation-delay: 0.4s; }

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.stat {
    animation: fadeInUp 0.8s ease-out;
}

.seguro-card:hover .card-icon {
    animation: pulse 0.6s ease-in-out;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--turquoise);
    color: white;
}

::-moz-selection {
    background: var(--turquoise);
    color: white;
}

/* ============================================
   ESTILOS DE IMPRESIÓN
   ============================================ */
@media print {
    .navbar,
    .footer,
    .nav-toggle,
    .btn-cta,
    .mobile-next-btn {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
    }
    
    .seguro-card {
        break-inside: avoid;
    }
}