:root {
    --primary: #223CA8;
    --dark: #131445;
    --light: #ffffff;
    --alt: #f4f6fb;

    /* Breakpoints */
    --bp-xl: 1200px;
    --bp-lg: 992px;
    --bp-md: 768px;
    --bp-sm: 576px;
    --bp-xs: 420px;
}

/* ================= RESET ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= CONTAINER ================= */
.container {
    width: 92%;
    max-width: min(1400px, 95vw);
    margin: auto;
    padding-left: clamp(0.75rem, 2vw, 2rem);
    padding-right: clamp(0.75rem, 2vw, 2rem);
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* Asegurar que las secciones con carrusel tengan suficiente espacio */
.section .container {
    position: relative;
    overflow: visible;
}


/* Contenedor especial para secciones con carrusel - definido más abajo */


.text-center { text-align: center; }
.mb-4 { margin-bottom: clamp(30px, 5vh, 50px); }
.mb-5 { margin-bottom: clamp(50px, 8vh, 80px); }

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.4;
}

/* ================= APPBAR ================= */
.appbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    transform: scale(1);
    transform-origin: top center;
    will-change: transform;
}

.appbar__container {
    height: clamp(55px, 7vh, 70px);
    min-height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 2rem);
    padding: 0 clamp(0.75rem, 1.8vw, 2rem);
    position: relative;
    max-width: min(1400px, 100%);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    flex-wrap: nowrap;
    isolation: isolate;
}

.appbar__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    max-height: clamp(45px, 7vh, 65px);
    margin-left: 0;
    z-index: 1001;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: clamp(90px, 12vw, 160px);
    max-width: clamp(110px, 14vw, 180px);
    overflow: hidden;
}

.appbar__logo img {
    height: clamp(40px, 5.5vh, 55px);
    width: auto;
    max-width: 100%;
    min-width: 90px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.appbar__logo2 img {
    height: 100px;
    width: 100px;
    display: block;
    margin-left: 50px;
    margin-top: -50;
}


.appbar__nav {
    display: flex;
    align-items: center;
    gap: clamp(0.2rem, 0.4vw, 0.5rem);
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
    flex: 1 1 auto;
    justify-content: flex-end;
    max-width: calc(100% - clamp(110px, 15vw, 200px));
    min-width: 0;
}

.appbar__nav > a {
    margin-left: clamp(4px, 0.8vw, 20px);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: clamp(4px, 0.7vh, 8px) clamp(5px, 0.9vw, 12px);
    font-size: clamp(0.7rem, 1vw + 0.3rem, 0.95rem);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    max-width: fit-content;
}

.appbar__nav > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s;
}

.appbar__nav > a:hover {
    color: var(--primary);
}

.appbar__nav > a:hover::after {
    width: 100%;
}

/* ================= DROPDOWN MENU ================= */
.dropdown {
    position: relative;
    margin-left: clamp(4px, 0.8vw, 20px);
    flex-shrink: 0;
    min-width: fit-content;
    max-width: fit-content;
}

/* Crear un área invisible entre el botón y el menú para mantener el hover activo */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -10px;
    width: calc(100% + 20px);
    height: clamp(12px, 1.5vh, 15px);
    background: transparent;
    z-index: 1000;
    pointer-events: all;
}

.dropdown-toggle {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: clamp(4px, 0.7vh, 8px) clamp(5px, 0.9vw, 12px);
    font-size: clamp(0.7rem, 1vw + 0.3rem, 0.95rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(2px, 0.4vw, 4px);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    max-width: fit-content;
}

.dropdown-toggle i {
    font-size: clamp(0.6rem, 0.9vw + 0.1rem, 0.7rem);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}


.dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: clamp(12px, 1.5vw, 16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-width: clamp(200px, 18vw, 240px);
    max-width: clamp(200px, 18vw, 280px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    padding: clamp(10px, 1.2vh, 12px) 0;
    border: 1px solid rgba(34, 60, 168, 0.1);
    display: block;
    pointer-events: none;
    margin-top: clamp(8px, 1vh, 10px);
}

/* Crear un área de padding invisible en la parte superior del menú */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -10px;
    width: calc(100% + 20px);
    height: 15px;
    background: transparent;
    pointer-events: all;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    pointer-events: all;
}

/* Mantener el menú visible cuando el cursor está sobre él */
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

.dropdown.active {
    z-index: 1002;
    position: relative;
}

/* Asegurar que cuando el cursor está sobre el menú, el dropdown sigue activo */
.dropdown:hover::after,
.dropdown.active::after,
.dropdown-menu:hover ~ .dropdown::after,
.dropdown.active::after {
    pointer-events: all;
}

/* Cuando el cursor está sobre el área de transición, mantener el dropdown activo */
.dropdown::after:hover {
    pointer-events: all;
}

/* Mejorar la conexión visual entre el botón y el menú */
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu,
.dropdown::after:hover ~ .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
    display: block !important;
}

.dropdown:hover .dropdown-toggle,
.dropdown.active .dropdown-toggle {
    color: var(--primary);
}

/* ================= LANGUAGE SELECTOR ================= */
.language-selector {
    display: flex;
    align-items: center;
    gap: clamp(5px, 0.7vw, 8px);
    margin-left: clamp(8px, 1.2vw, 20px);
    padding-left: clamp(8px, 1.2vw, 20px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    flex-grow: 0;
    min-width: fit-content;
    max-width: fit-content;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: clamp(4px, 0.6vh, 6px) clamp(8px, 1.1vw, 14px);
    border-radius: clamp(5px, 0.7vw, 6px);
    color: var(--dark);
    font-weight: 500;
    font-size: clamp(0.7rem, 0.95vw + 0.25rem, 0.9rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    max-width: fit-content;
}

.language-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.language-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(34, 60, 168, 0.3);
}

.language-btn span {
    pointer-events: none;
}

/* Mobile styles para language selector */
@media (max-width: 992px) {
    .language-selector {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: clamp(14px, 2vh, 16px);
        margin-top: clamp(14px, 2vh, 16px);
        width: 100%;
        justify-content: center;
        gap: clamp(8px, 1.2vw, 12px);
    }
    
    .language-btn {
        flex: 1;
        max-width: clamp(120px, 18vw, 150px);
        font-size: clamp(0.8rem, 1.15vw + 0.2rem, 0.9rem);
        padding: clamp(8px, 1vh, 10px) clamp(12px, 2vw, 16px);
    }
}
}

.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: clamp(10px, 1.2vh, 12px) clamp(16px, 2vw, 24px);
    color: var(--dark);
    text-decoration: none;
    font-size: clamp(0.8rem, 1vw + 0.2rem, 0.9rem);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(34, 60, 168, 0.1), transparent);
    padding-left: 28px;
    color: var(--primary);
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: clamp(55px, 7vh, 70px); /* espacio para appbar fijo - adaptativo */
    box-sizing: border-box;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(19, 20, 69, 0.92) 0%,
        rgba(19, 20, 69, 0.82) 30%,
        rgba(19, 20, 69, 0.65) 55%,
        rgba(19, 20, 69, 0.35) 80%,
        rgba(19, 20, 69, 0.1) 100%
    );
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 20px 0;
    max-width: 500px;
}

.hero__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero__logo {
    margin-bottom: 16px;
}

.hero__logo img {
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    /*text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);*/
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    max-width: 480px;
}

.hero__subtitle {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    line-height: 1.4;
}

.hero__buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero__buttons .btn {
    padding: 12px 28px;
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
}

.btn {
    padding: clamp(12px, 2vh, 18px) clamp(24px, 4vw, 42px);
    border-radius: clamp(30px, 5vw, 50px);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vw, 10px);
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3f5efb, #5c7cfa);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    box-shadow: 
        0 10px 40px rgba(34, 60, 168, 0.5),
        0 0 20px rgba(63, 94, 251, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(34, 60, 168, 0.7),
        0 0 40px rgba(63, 94, 251, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background-position: 100% 50%;
}

.btn-primary:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) translateX(100%);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.3;
}

.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.1), rgba(63, 94, 251, 0.1));
    filter: blur(60px);
    animation: floatElement 20s ease-in-out infinite;
    opacity: 0.5;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.2);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.8);
    }
}

.container_hero {
    position: absolute;
    bottom: -20px;
    right: -7%;
    padding: 40px 10px;
    width: 300px;
    z-index: 2;
    text-align: right;
}

/* ================= SECTIONS ================= */
.section {
    padding: clamp(60px, 10vh, 120px) 0;
    position: relative;
    overflow: visible;
}


/* ================= COLORS DE FONDO ALTERNADOS ================= */
/* Color 1: Blanco/claro (gradiente suave) */
.section--bg1 {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    position: relative;
    color: var(--dark);
}

/* Color 2: Azul oscuro (como diferenciadores) */
.section--bg2 {
    background: radial-gradient(circle at top, #1c1d50, #0f102f);
    color: var(--light);
    position: relative;
}

.section--bg2 h2,
.section--bg2 h3,
.section--bg2 h4,
.section--bg2 h5,
.section--bg2 h6,
.section--bg2 p,
.section--bg2 .section-title,
.section--bg2 .section-text {
    color: var(--light);
}

.section--bg2 .section-tag {
    color: rgba(255, 255, 255, 0.8);
}

.section--bg2 .section-tag--light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Color 3: Gris azulado medio (color intermedio) */
.section--bg3 {
    background: linear-gradient(180deg, #e8ecf5 0%, #d4dae8 100%);
    position: relative;
    color: var(--dark);
}

.section--alt {
    background: linear-gradient(180deg, #f4f6fb 0%, #ffffff 100%);
    position: relative;
}

.section--alt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(34, 60, 168, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(63, 94, 251, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section--dark {
    background: radial-gradient(circle at top, #1c1d50, #0f102f);
    color: var(--light);
    position: relative;
}

.section--dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(63, 94, 251, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(34, 60, 168, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ================= GRIDS ================= */
.grid-3, .grid-producto {
    display: grid;
    gap: clamp(20px, 3vw, 40px);
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-producto { grid-template-columns: repeat(2, 1fr); }

/* ================= CARD 3D ================= */
.card {
    background: var(--light);
    padding: clamp(25px, 4vw, 50px) clamp(20px, 3.5vw, 45px);
    border-radius: clamp(16px, 2.5vw, 28px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.08);
    transform-style: preserve-3d;
    transition: all .6s cubic-bezier(.16,1,.3,1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
    margin: clamp(20px, 3vw, 50px);
    
}

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 60, 168, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 10px 25px rgba(34, 60, 168, 0.2);
}


.card.dark {
    background: linear-gradient(180deg, #1c1d50, #131445);
    color: white;
}

.card.centered { text-align: center; }

.card img {
    width: 100%;
    height: clamp(180px, 25vh, 280px);
    object-fit: cover;
    border-radius: clamp(12px, 2vw, 20px);
    margin-bottom: clamp(20px, 3vh, 30px);
    transform: translateZ(30px);
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: translateZ(30px) scale(1.05);
}

.circle-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ================= STEPS ================= */
.step {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    transition: transform .3s;
    margin-bottom: 10px;
}

.step:hover { transform: translateX(10px); }

.step span {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all .9s cubic-bezier(.16,1,.3,1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= CONTACTO & FOOTER ================= */
#contacto button {
    background: linear-gradient(135deg, var(--dark), #2c2d8a);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    transition: transform .3s, box-shadow .3s;
}

#contacto button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ================= FOOTER ================= */
.footer {
    border-top: 2px solid rgba(0,0,0,0.08);
    background: linear-gradient(180deg, #fffdfd, #ffffff);
    padding: clamp(40px, 5vw, 64px) 0 0;
    font-size: 14px;
    color: #333;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer__logo {
    width: 140px;
    margin-bottom: 16px;
}

.footer__desc {
    line-height: 1.6;
    color: #555;
}

.footer__col h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e1f4b;
}

.footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__col ul li {
    margin-bottom: 8px;
    color: #555;
}

.footer__col ul li a {
    color: #2c2d8a;
    text-decoration: none;
    transition: color .2s ease;
}

.footer__col ul li a:hover {
    color: #000;
}

/* BARRA INFERIOR */
.footer__bottom {
    margin-top: 40px;
    padding: 16px 0;
    text-align: center;
    border-top: 0px solid rgba(0,0,0,0.08);
    background-color: transparent;
    font-size: 13px;
    color: #666;
}



/* ================= MENU MOBILE & MEDIA QUERIES ================= */
.appbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: clamp(8px, 1vh, 12px);
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
}

.appbar__toggle span {
    width: clamp(22px, 3vw, 26px);
    height: clamp(2.5px, 0.4vh, 3px);
    margin: clamp(4px, 0.6vh, 5px) 0;
    background: var(--dark);
    display: block;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .section { padding: 70px 0; }
    .grid-3, .grid-producto { grid-template-columns: repeat(2, 1fr); }
    .appbar__toggle { 
        display: block;
        z-index: 1001;
        position: relative;
    }
    
    .appbar__toggle span {
        transition: all 0.3s ease;
    }
    
    .appbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(clamp(6px, 1vw, 8px), clamp(6px, 1vw, 8px));
    }
    
    .appbar__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .appbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(clamp(5px, 0.9vw, 7px), clamp(-5px, -0.9vw, -7px));
    }
    
    .appbar__nav {
        position: fixed;
        top: clamp(55px, 7vh, 70px);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: none;
        flex-direction: column;
        padding: clamp(16px, 2.5vh, 20px) 0;
        max-height: calc(100vh - clamp(55px, 7vh, 70px));
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .appbar__nav.active { 
        display: flex;
    }
    
    .appbar__nav > a {
        padding: clamp(14px, 2vh, 16px) clamp(20px, 3vw, 24px);
        margin-left: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: clamp(0.85rem, 1.2vw + 0.2rem, 0.95rem);
    }
    
    .dropdown {
        margin-left: 0;
        width: 100%;
    }
    
    .dropdown-toggle {
        padding: clamp(14px, 2vh, 16px) clamp(20px, 3vw, 24px);
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: clamp(0.85rem, 1.2vw + 0.2rem, 0.95rem);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        background: rgba(244, 246, 251, 0.5);
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        display: none;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        min-width: 100%;
        max-width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: clamp(10px, 1.5vh, 12px) clamp(36px, 6vw, 48px);
        font-size: clamp(0.8rem, 1.1vw + 0.2rem, 0.9rem);
    }
}

@media (max-width: 576px) {
    .hero { min-height: auto; padding: 120px 0 60px; }
    .grid-3, .grid-producto { grid-template-columns: 1fr; }
    .card { padding: 25px; }
}

/* ===============================
   CARRUSEL CON BOTONES
================================ */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    gap: 40px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;

}

.carousel-slide .card {
    flex: 0 0 calc((100% - 80px) / 3);
    min-width: calc((100% - 80px) / 3);
    max-width: calc((100% - 80px) / 3);
}

.carousel-btn {
    margin: clamp(10px, 1.5vw, 20px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(45px, 5vw, 60px);
    height: clamp(45px, 5vw, 60px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 100;
    font-size: clamp(18px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(34, 60, 168, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.3);
}

/* Estilos para carrusel en sección oscura */
.section--dark .carousel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.section--dark .carousel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.section--dark .carousel-btn:disabled {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1200px) {
    .carousel-slide .card {
        flex: 0 0 calc((100% - 40px) / 2);
        min-width: calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-slide .card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .carousel-slide {
        gap: clamp(15px, 3vw, 20px);
    }
    
    .carousel-btn {
        width: clamp(40px, 6vw, 45px);
        height: clamp(40px, 6vw, 45px);
        font-size: clamp(16px, 2.5vw, 18px);
    }
}

/* ===============================
   PÓLIZAS – VISUAL PREMIUM
================================ */

.polizas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(20px, 3vw, 40px);
    text-align: center;
}

.poliza-item {
    padding: clamp(25px, 4vw, 50px) clamp(20px, 3vw, 35px);
    border-radius: clamp(18px, 2.5vw, 28px);
    background: linear-gradient(180deg, #ffffff, #f4f6fb);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all .4s cubic-bezier(.16,1,.3,1);
    border: 1px solid rgba(34, 60, 168, 0.1);
}

.poliza-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

.poliza-item i {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: clamp(16px, 2.5vh, 24px);
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    transition: transform 0.3s ease;
}

.poliza-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.poliza-item p {
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.6;
    color: var(--dark);
}


@media (max-width: 992px) {
    .polizas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .polizas-grid {
        grid-template-columns: 1fr;
    }
}



/* ===============================
   ADICIONES PARA HACER TODO 100% RESPONSIVE
   (NO BORRAR NADA, solo reglas adicionales y mejoras)
================================ */

/* Fluid typography - adapta mejor al zoom */
html { 
    font-size: clamp(13px, 1.5vw, 16px);
}
@media (max-width: 1200px) { 
    html { font-size: clamp(13px, 1.4vw, 15px); } 
}
@media (max-width: 992px) { 
    html { font-size: clamp(12px, 1.5vw, 14px); } 
}
@media (max-width: 576px) { 
    html { font-size: clamp(11px, 2vw, 13px); } 
}

/* Make container fully fluid on all screens - mejor adaptación al zoom */
@media (max-width: 1200px) {
    .container { 
        width: 92%; 
        max-width: min(1100px, 95vw); 
        padding-left: clamp(0.75rem, 2vw, 1.5rem);
        padding-right: clamp(0.75rem, 2vw, 1.5rem);
    }
}
@media (max-width: 992px) {
    .container { 
        width: 94%; 
        max-width: min(960px, 96vw); 
        padding-left: clamp(0.75rem, 2vw, 1.5rem);
        padding-right: clamp(0.75rem, 2vw, 1.5rem);
    }
}
@media (max-width: 768px) {
    .container { 
        width: 96%; 
        max-width: min(720px, 98vw); 
        padding-left: clamp(0.75rem, 2vw, 1rem);
        padding-right: clamp(0.75rem, 2vw, 1rem);
    }
}
@media (max-width: 576px) {
    .container { 
        width: 98%; 
        max-width: 100%;
        padding-left: clamp(0.75rem, 3vw, 1rem);
        padding-right: clamp(0.75rem, 3vw, 1rem);
    }
}

/* Responsive appbar: logo and nav adjustments - Optimizado para zoom */
/* Breakpoints intermedios para mejor adaptación */
@media (max-width: 1400px) and (min-width: 1201px) {
    .appbar__nav {
        max-width: calc(100% - clamp(120px, 16vw, 200px));
    }
    .appbar__nav > a {
        font-size: clamp(0.72rem, 0.98vw + 0.28rem, 0.93rem);
        margin-left: clamp(4px, 0.75vw, 18px);
        padding: clamp(4px, 0.7vh, 8px) clamp(5px, 0.85vw, 11px);
    }
    .dropdown-toggle {
        font-size: clamp(0.72rem, 0.98vw + 0.28rem, 0.93rem);
        padding: clamp(4px, 0.7vh, 8px) clamp(5px, 0.85vw, 11px);
    }
}

@media (max-width: 1200px) {
    .appbar__logo { 
        margin-left: 0; 
        min-width: clamp(85px, 11vw, 140px);
        max-width: clamp(105px, 13.5vw, 160px);
    }
    .appbar__logo img { 
        height: clamp(38px, 5.3vh, 55px);
        max-width: 100%;
    }
    .appbar__container { 
        padding: 0 clamp(0.7rem, 1.4vw, 1.5rem);
        height: clamp(54px, 6.9vh, 68px);
        gap: clamp(0.7rem, 1.4vw, 1.8rem);
    }
    .appbar__nav {
        max-width: calc(100% - clamp(100px, 13vw, 180px));
    }
    .appbar__nav > a {
        font-size: clamp(0.7rem, 0.95vw + 0.25rem, 0.9rem);
        margin-left: clamp(3px, 0.7vw, 12px);
        padding: clamp(4px, 0.65vh, 7px) clamp(4px, 0.85vw, 10px);
    }
    .dropdown {
        margin-left: clamp(3px, 0.7vw, 12px);
    }
    .dropdown-toggle {
        font-size: clamp(0.7rem, 0.95vw + 0.25rem, 0.9rem);
        padding: clamp(4px, 0.65vh, 7px) clamp(4px, 0.85vw, 10px);
    }
    .language-selector {
        margin-left: clamp(6px, 1vw, 18px);
        padding-left: clamp(6px, 1vw, 18px);
    }
}
@media (max-width: 1100px) and (min-width: 993px) {
    .appbar__nav {
        max-width: calc(100% - clamp(95px, 12.5vw, 170px));
    }
    .appbar__nav > a {
        font-size: clamp(0.68rem, 0.9vw + 0.23rem, 0.88rem);
        margin-left: clamp(3px, 0.65vw, 10px);
    }
    .dropdown-toggle {
        font-size: clamp(0.68rem, 0.9vw + 0.23rem, 0.88rem);
    }
}

@media (max-width: 992px) {
    .appbar__container { 
        padding: 0 clamp(0.7rem, 1.1vw, 1rem);
        gap: clamp(0.7rem, 0.95vw, 1rem);
        height: clamp(54px, 6.9vh, 65px);
    }
    .appbar__logo { 
        margin-left: 0; 
        z-index: 1002;
        min-width: clamp(80px, 10.5vw, 130px);
        max-width: clamp(95px, 12vw, 145px);
    }
    .appbar__logo img {
        height: clamp(36px, 4.9vh, 50px);
        max-width: 100%;
        min-width: 80px;
    }
    .appbar__nav { 
        gap: clamp(0.2rem, 0.45vw, 0.5rem); 
        max-width: calc(100% - clamp(90px, 11.5vw, 160px));
    }
    .appbar__nav > a { 
        margin-left: clamp(3px, 0.65vw, 12px); 
        padding: clamp(6px, 0.9vh, 10px) clamp(5px, 0.9vw, 8px); 
        font-size: clamp(0.7rem, 0.95vw + 0.18rem, 0.9rem); 
    }
    .dropdown {
        margin-left: clamp(3px, 0.65vw, 12px);
    }
    .dropdown-toggle {
        font-size: clamp(0.7rem, 0.95vw + 0.18rem, 0.9rem);
        padding: clamp(6px, 0.9vh, 10px) clamp(5px, 0.9vw, 10px);
    }
    .language-selector {
        margin-left: clamp(5px, 0.9vw, 16px);
        padding-left: clamp(5px, 0.9vw, 16px);
        gap: clamp(4px, 0.65vw, 7px);
    }
    .language-btn {
        font-size: clamp(0.68rem, 0.9vw + 0.2rem, 0.87rem);
        padding: clamp(4px, 0.55vh, 6px) clamp(7px, 1vw, 13px);
    }
}
/* Mobile nav slide-in with transform for smoother UX */
.appbar__nav {
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s;
}
.appbar__nav.hidden {
    transform: translateY(-10px);
    opacity: 0;
}
.appbar__nav.active {
    transform: translateY(0);
    opacity: 1;
}

/* Hero responsiveness */
@media (max-width: 1200px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__left {
        text-align: center;
    }
    .hero__buttons {
        justify-content: center;
    }
    .hero__right {
        justify-content: center;
    }
    .hero__stats {
        max-width: 600px;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        height: 100vh;
        padding-top: clamp(55px, 7vh, 70px);
    }
    .hero__container {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
        justify-items: center;
    }
    .hero__left {
        text-align: center;
        max-width: 100%;
        align-items: center;
    }
    .hero__logo img {
        max-width: 220px;
    }
    .hero__title {
        font-size: clamp(1.4rem, 3.5vw, 2rem);
        max-width: 100%;
        text-align: center;
    }
    .hero__subtitle {
        font-size: clamp(0.85rem, 1.6vw, 0.95rem);
        max-width: 100%;
        text-align: center;
    }
    .hero__buttons {
        justify-content: center;
        width: 100%;
    }
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(19, 20, 69, 0.88) 0%,
            rgba(19, 20, 69, 0.75) 40%,
            rgba(19, 20, 69, 0.5) 100%
        );
    }
}

@media (max-width: 576px) {
    .hero {
        height: 100vh;
    }
    .hero__container {
        padding: 15px;
        gap: 20px;
    }
    .hero__left {
        padding: 20px 0;
    }
    .hero__logo {
        margin-bottom: 16px;
    }
    .hero__logo img {
        max-width: 180px;
    }
    .hero__title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
        margin-bottom: 10px;
    }
    .hero__subtitle {
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
        margin-bottom: 16px;
    }
    .hero__buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    .stat-item {
        padding: 16px 10px;
    }
    .stat-number {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
    }
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Grid improvements: use auto-fit for better responsiveness while preserving original classes */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-producto {
    grid-template-columns: repeat(2, 1fr);
}

/* Make grids fluid with minmax fallback */
@media (max-width: 1400px) {
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .grid-producto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 992px) {
    .grid-3, .grid-producto { gap: 24px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-producto { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .grid-3, .grid-producto { grid-template-columns: 1fr; gap: 18px; }
}

/* Card scaling and image responsiveness - ya está optimizado arriba */
/* Asegurar que los márgenes también sean fluidos */
.card {
    padding: clamp(18px, 2.5vw, 40px);
    border-radius: clamp(12px, 2vw, 24px);
    margin: clamp(20px, 3vw, 50px);
}
.card img {
    height: clamp(140px, 22vw, 220px);
    border-radius: clamp(10px, 1.5vw, 18px);
    margin-bottom: clamp(20px, 3vh, 30px);
}

/* Circle image responsive */
.circle-img {
    width: clamp(72px, 12vw, 120px);
    height: clamp(72px, 12vw, 120px);
}

/* Steps: make spacing responsive */
.step { gap: clamp(10px, 2vw, 20px); }
.step span { min-width: clamp(32px, 6vw, 40px); height: clamp(32px, 6vw, 40px); }

/* Reveal: keep transitions but reduce translate on small screens */
.reveal { transform: translateY(60px); }
@media (max-width: 576px) { .reveal { transform: translateY(30px); } }

/* Contact button responsive */
#contacto button { padding: clamp(10px, 2vw, 14px); border-radius: clamp(8px, 1.5vw, 10px); }

/* Footer padding adjustments */
.footer { 
    padding: clamp(24px, 4vw, 40px) 0; 
}

/* Mejoras adicionales para adaptación al zoom */
@media (min-resolution: 150dpi) or (-webkit-min-device-pixel-ratio: 1.5) {
    /* Para pantallas de alta resolución */
    html {
        font-size: clamp(14px, 1.6vw, 17px);
    }
}

/* Optimización específica para diferentes niveles de zoom del navegador */
/* Zoom 125% - 1280px efectivo en pantalla 1024px */
@media screen and (min-width: 1024px) and (max-width: 1400px) {
    .appbar__container {
        height: clamp(57px, 7.3vh, 72px);
        padding: 0 clamp(0.72rem, 1.65vw, 1.9rem);
    }
    .appbar__logo {
        min-width: clamp(95px, 12.5vw, 155px);
        max-width: clamp(115px, 14.5vw, 175px);
    }
    .appbar__logo img {
        height: clamp(41px, 5.7vh, 56px);
    }
    .appbar__nav {
        max-width: calc(100% - clamp(115px, 15vw, 200px));
    }
    .appbar__nav > a {
        font-size: clamp(0.75rem, 1.08vw + 0.27rem, 0.93rem);
        margin-left: clamp(4px, 0.78vw, 19px);
        padding: clamp(4px, 0.72vh, 8px) clamp(5px, 0.88vw, 11px);
    }
    .dropdown-toggle {
        font-size: clamp(0.75rem, 1.08vw + 0.27rem, 0.93rem);
        padding: clamp(4px, 0.72vh, 8px) clamp(5px, 0.88vw, 11px);
    }
    .language-btn {
        font-size: clamp(0.73rem, 0.98vw + 0.22rem, 0.89rem);
    }
}

/* Zoom 150% - 853px efectivo en pantalla 1280px */
@media screen and (min-width: 800px) and (max-width: 1000px) {
    .appbar__container {
        height: clamp(55px, 7.1vh, 70px);
        padding: 0 clamp(0.68rem, 1.55vw, 1.75rem);
        gap: clamp(0.68rem, 1.35vw, 1.75rem);
    }
    .appbar__logo {
        min-width: clamp(88px, 11.8vw, 145px);
        max-width: clamp(108px, 13.8vw, 165px);
    }
    .appbar__logo img {
        height: clamp(39px, 5.5vh, 54px);
    }
    .appbar__nav {
        max-width: calc(100% - clamp(105px, 13.8vw, 185px));
    }
    .appbar__nav > a {
        font-size: clamp(0.73rem, 1.05vw + 0.26rem, 0.92rem);
        margin-left: clamp(4px, 0.85vw, 18px);
        padding: clamp(4px, 0.68vh, 7px) clamp(4px, 0.88vw, 11px);
    }
    .dropdown {
        margin-left: clamp(4px, 0.85vw, 18px);
    }
    .dropdown-toggle {
        font-size: clamp(0.73rem, 1.05vw + 0.26rem, 0.92rem);
        padding: clamp(4px, 0.68vh, 7px) clamp(4px, 0.88vw, 11px);
    }
    .language-selector {
        margin-left: clamp(7px, 1.15vw, 18px);
        padding-left: clamp(7px, 1.15vw, 18px);
    }
    .language-btn {
        font-size: clamp(0.71rem, 0.95vw + 0.21rem, 0.88rem);
        padding: clamp(4px, 0.62vh, 6px) clamp(8px, 1.2vw, 13px);
    }
}

/* Zoom 175% - 731px efectivo en pantalla 1280px */
@media screen and (min-width: 700px) and (max-width: 850px) {
    .appbar__container {
        height: clamp(53px, 6.95vh, 68px);
        padding: 0 clamp(0.65rem, 1.45vw, 1.55rem);
        gap: clamp(0.65rem, 1.3vw, 1.7rem);
    }
    .appbar__logo {
        min-width: clamp(83px, 11.2vw, 138px);
        max-width: clamp(103px, 13.2vw, 158px);
    }
    .appbar__logo img {
        height: clamp(37px, 5.3vh, 52px);
    }
    .appbar__nav {
        max-width: calc(100% - clamp(100px, 13.2vw, 178px));
        gap: clamp(0.18rem, 0.38vw, 0.45rem);
    }
    .appbar__nav > a {
        font-size: clamp(0.71rem, 1.02vw + 0.25rem, 0.9rem);
        margin-left: clamp(3px, 0.78vw, 16px);
        padding: clamp(4px, 0.72vh, 7px) clamp(4px, 0.92vw, 11px);
    }
    .dropdown {
        margin-left: clamp(3px, 0.78vw, 17px);
    }
    .dropdown-toggle {
        font-size: clamp(0.71rem, 1.02vw + 0.25rem, 0.9rem);
        padding: clamp(4px, 0.72vh, 7px) clamp(4px, 0.92vw, 11px);
    }
    .language-selector {
        margin-left: clamp(6px, 1.25vw, 17px);
        padding-left: clamp(6px, 1.25vw, 17px);
        gap: clamp(5px, 0.62vw, 7px);
    }
    .language-btn {
        font-size: clamp(0.69rem, 0.92vw + 0.2rem, 0.86rem);
        padding: clamp(4px, 0.6vh, 6px) clamp(7px, 1.15vw, 12px);
    }
}

/* Zoom 200% - 640px efectivo en pantalla 1280px */
@media screen and (min-width: 600px) and (max-width: 750px) {
    .appbar__container {
        height: clamp(51px, 6.75vh, 66px);
        padding: 0 clamp(0.6rem, 1.35vw, 1.35rem);
        gap: clamp(0.6rem, 1.25vw, 1.55rem);
    }
    .appbar__logo {
        min-width: clamp(80px, 10.8vw, 128px);
        max-width: clamp(98px, 12.8vw, 148px);
    }
    .appbar__logo img {
        height: clamp(35px, 5.1vh, 50px);
    }
    .appbar__nav {
        max-width: calc(100% - clamp(95px, 12.8vw, 168px));
        gap: clamp(0.15rem, 0.35vw, 0.42rem);
    }
    .appbar__nav > a {
        font-size: clamp(0.69rem, 0.98vw + 0.24rem, 0.88rem);
        margin-left: clamp(3px, 0.68vw, 14px);
        padding: clamp(4px, 0.68vh, 6px) clamp(4px, 0.88vw, 10px);
    }
    .dropdown {
        margin-left: clamp(3px, 0.68vw, 15px);
    }
    .dropdown-toggle {
        font-size: clamp(0.69rem, 0.98vw + 0.24rem, 0.88rem);
        padding: clamp(4px, 0.68vh, 6px) clamp(4px, 0.88vw, 10px);
    }
    .dropdown-menu {
        min-width: clamp(175px, 15.5vw, 228px);
    }
    .dropdown-menu a {
        font-size: clamp(0.7rem, 0.92vw + 0.19rem, 0.87rem);
        padding: clamp(8px, 1.05vh, 11px) clamp(13px, 1.75vw, 22px);
    }
    .language-selector {
        margin-left: clamp(5px, 1.05vw, 15px);
        padding-left: clamp(5px, 1.05vw, 15px);
        gap: clamp(4px, 0.68vw, 7px);
    }
    .language-btn {
        font-size: clamp(0.67rem, 0.88vw + 0.19rem, 0.84rem);
        padding: clamp(4px, 0.58vh, 6px) clamp(7px, 1.15vw, 12px);
    }
}

/* Asegurar que todos los elementos con posición fija se adapten al zoom */
.appbar {
    transform: scale(1);
    transform-origin: top center;
}

/* Prevención de overflow horizontal - reglas adicionales */
.appbar__container {
    overflow-x: clip;
}

/* Ajuste fino del espacio disponible para navegación */
@media (min-width: 993px) {
    .appbar__nav {
        overflow: visible;
    }
    
    /* Si los elementos no caben, reducir gaps progresivamente */
    @media (max-width: 1400px) {
        .appbar__nav {
            gap: clamp(0.15rem, 0.35vw, 0.5rem);
        }
        .appbar__nav > a {
            margin-left: clamp(3px, 0.7vw, 18px);
        }
        .dropdown {
            margin-left: clamp(3px, 0.7vw, 18px);
        }
    }
    
    @media (max-width: 1200px) {
        .appbar__nav {
            gap: clamp(0.12rem, 0.3vw, 0.45rem);
        }
        .appbar__nav > a {
            margin-left: clamp(2px, 0.65vw, 15px);
            padding: clamp(4px, 0.65vh, 7px) clamp(4px, 0.8vw, 10px);
        }
        .dropdown {
            margin-left: clamp(2px, 0.65vw, 15px);
        }
        .dropdown-toggle {
            padding: clamp(4px, 0.65vh, 7px) clamp(4px, 0.8vw, 10px);
        }
    }
}

/* Mejoras para transición suave entre breakpoints */
@media (max-width: 1400px) and (min-width: 1201px) {
    .appbar__nav {
        gap: clamp(0.18rem, 0.38vw, 0.48rem);
    }
}

@media (max-width: 1100px) and (min-width: 993px) {
    .appbar__nav {
        gap: clamp(0.15rem, 0.32vw, 0.42rem);
    }
}

/* Mejorar el scroll para diferentes niveles de zoom */
@media (min-width: 1920px) {
    .container {
        max-width: min(1600px, 85vw);
    }
}

/* Ajustes para zoom del navegador (125%, 150%, 175%, 200%) */
@media screen and (min-width: 800px) and (max-width: 1200px) {
    /* Para cuando el zoom hace que la pantalla se vea como 800-1200px */
    .container {
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
    }
}

/* Appbar toggle visible on small screens */
@media (max-width: 992px) {
    .appbar__toggle { display: block; }
    .appbar__nav { display: none; }
    .appbar__nav.active { display: flex; }
}


/* Polizas grid: use auto-fit for many screen sizes while preserving original look */
.polizas-grid {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1400px) {
    .polizas-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 992px) {
    .polizas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 576px) {
    .polizas-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Accessibility: focus states */
a:focus, button:focus, .appbar__toggle:focus {
    outline: 3px solid rgba(34,60,168,0.18);
    outline-offset: 2px;
}

/* Utility: hide visually but keep accessible */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Preserve original classes and behavior: additional small tweaks for very small screens */
@media (max-width: 480px) and (min-width: 421px) {
    .appbar__container {
        gap: clamp(0.55rem, 0.9vw, 0.7rem);
    }
    .appbar__logo {
        min-width: clamp(75px, 9.5vw, 115px);
        max-width: clamp(88px, 11.5vw, 135px);
    }
    .appbar__logo img {
        height: clamp(33px, 4.8vh, 43px);
    }
    .appbar__nav {
        max-width: calc(100% - clamp(85px, 10.5vw, 150px));
    }
}

@media (max-width: 420px) {
    .appbar__container { 
        height: clamp(49px, 6.8vh, 60px); 
        padding: 0 clamp(0.48rem, 1.95vw, 0.72rem);
        gap: clamp(0.48rem, 0.95vw, 0.72rem);
    }
    .appbar__logo { 
        margin-left: 0;
        min-width: clamp(70px, 9vw, 115px);
        max-width: clamp(82px, 11vw, 130px);
    }
    .appbar__logo img { 
        height: clamp(32px, 4.7vh, 43px);
        max-width: 100%;
        min-width: 70px;
    }
    .appbar__nav {
        max-width: calc(100% - clamp(80px, 10vw, 140px));
    }
    .appbar__nav a { 
        font-size: clamp(0.68rem, 1.45vw + 0.12rem, 0.85rem); 
        padding: clamp(5px, 0.95vh, 8px) clamp(4px, 0.78vw, 8px); 
        margin-left: clamp(3px, 0.78vw, 8px); 
    }
    .dropdown {
        margin-left: clamp(3px, 0.78vw, 8px);
    }
    .dropdown-toggle {
        font-size: clamp(0.68rem, 1.45vw + 0.12rem, 0.85rem);
        padding: clamp(5px, 0.95vh, 8px) clamp(4px, 0.78vw, 10px);
    }
    .language-selector {
        margin-left: clamp(4px, 0.78vw, 8px);
        padding-left: clamp(4px, 0.78vw, 8px);
        gap: clamp(4px, 0.62vw, 6px);
    }
    .language-btn {
        font-size: clamp(0.65rem, 1.25vw + 0.12rem, 0.8rem);
        padding: clamp(4px, 0.58vh, 6px) clamp(6px, 1.15vw, 12px);
    }
    .card { 
        padding: clamp(14px, 2vw, 16px); 
        border-radius: clamp(12px, 2vw, 14px); 
    }
    .container_hero { 
        padding: clamp(12px, 2vw, 14px); 
        width: calc(100% - clamp(1rem, 3vw, 2rem)); 
    }
    .poliza-item { 
        padding: clamp(20px, 3vw, 24px) clamp(14px, 2vw, 16px); 
    }
}

/* Keep original rules intact (no deletion). The above rules only add responsive behavior and do not remove or replace original declarations, they extend them for fluid layouts and smaller screens. */

/* ================= CHATBOT FUTURISTA ================= */
.chatbot-container {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    z-index: 99999 !important;
    font-family: inherit;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Botón flotante del chatbot */
.chatbot-toggle {
    width: clamp(56px, 6vw, 70px);
    height: clamp(56px, 6vw, 70px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3f5efb, #5c7cfa);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, pulse 2s ease-in-out infinite;
    border: clamp(2px, 0.3vw, 3px) solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(34, 60, 168, 0.5),
        0 0 0 0 rgba(34, 60, 168, 0.7),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    color: white;
    font-size: clamp(22px, 3vw, 28px);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(34, 60, 168, 0.5),
            0 0 0 0 rgba(34, 60, 168, 0.7),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(34, 60, 168, 0.7),
            0 0 0 10px rgba(34, 60, 168, 0),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 50px rgba(34, 60, 168, 0.6),
        0 0 0 5px rgba(255, 255, 255, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

.chatbot-toggle.active {
    transform: scale(0.9);
    opacity: 0.8;
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 2s ease-out infinite;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Ventana del chatbot */
.chatbot-window {
    position: absolute;
    bottom: clamp(70px, 10vh, 90px);
    right: 0;
    width: clamp(320px, 35vw, 420px);
    height: clamp(400px, 60vh, 600px);
    max-height: 80vh;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: clamp(16px, 2.5vw, 24px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(34, 60, 168, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header del chatbot */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chatbot-header-text h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.chatbot-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.chatbot-header .chatbot-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chatbot-header .chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mensajes del chatbot */
.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(to bottom, #fafbfc, #ffffff);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(34, 60, 168, 0.2);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 60, 168, 0.4);
}

.chatbot-message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message-user {
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(34, 60, 168, 0.3);
}

.chatbot-message-user .message-avatar {
    display: none;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.chatbot-message-bot .message-content {
    background: linear-gradient(135deg, rgba(244, 246, 251, 0.9), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(34, 60, 168, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 4px;
}

.chatbot-message-user .message-content {
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(34, 60, 168, 0.3);
}

.message-content p {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 4px;
}

/* Quick actions */
.chatbot-quick-actions {
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(244, 246, 251, 0.5);
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 251, 0.9));
    border: 1px solid rgba(34, 60, 168, 0.1);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 60, 168, 0.3);
    border-color: transparent;
}

.quick-action-btn i {
    font-size: 14px;
}

/* Input del chatbot */
.chatbot-input-container {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(34, 60, 168, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
}

.chatbot-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 60, 168, 0.1);
    background: white;
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 60, 168, 0.3);
}

.chatbot-send:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 60, 168, 0.4);
}

.chatbot-send:active {
    transform: translateY(0) scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: clamp(15px, 3vh, 20px) !important;
        right: clamp(15px, 3vw, 20px) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }

    .chatbot-toggle {
        width: clamp(50px, 7vw, 60px);
        height: clamp(50px, 7vw, 60px);
        font-size: clamp(20px, 3vw, 24px);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .chatbot-window {
        width: calc(100vw - clamp(30px, 5vw, 40px));
        max-width: 400px;
        height: calc(100vh - clamp(100px, 15vh, 120px));
        max-height: 600px;
        bottom: clamp(70px, 10vh, 90px);
        right: clamp(15px, 3vw, 20px);
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: clamp(12px, 2.5vh, 15px) !important;
        right: clamp(12px, 2.5vw, 15px) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }

    .chatbot-toggle {
        width: clamp(50px, 7vw, 56px);
        height: clamp(50px, 7vw, 56px);
        font-size: clamp(20px, 3vw, 22px);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .chatbot-window {
        width: calc(100vw - clamp(24px, 5vw, 30px));
        right: clamp(12px, 2.5vw, 15px);
        border-radius: clamp(16px, 2.5vw, 20px);
        bottom: clamp(70px, 10vh, 80px);
    }

    .chatbot-message .message-content {
        max-width: 85%;
    }
}

/* Asegurar visibilidad en todas las dimensiones */
@media (max-width: 992px) {
    .chatbot-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }
}

@media (max-width: 576px) {
    .chatbot-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }
}

/* ================= FUTURISTIC STYLES ================= */

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Section Tag */
.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-tag--light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
    line-height: 1.2;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.section-intro {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* ================= ABOUT SECTION ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    padding: 20px 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.05), rgba(63, 94, 251, 0.05));
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.15);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    min-width: 40px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ================= MISSION & VISION ================= */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.mission-card,
.vision-card {
    padding: 50px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.mission-card {
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.1), rgba(63, 94, 251, 0.1));
    border: 1px solid rgba(34, 60, 168, 0.2);
}

.vision-card {
    background: linear-gradient(135deg, rgba(19, 20, 69, 0.1), rgba(34, 60, 168, 0.1));
    border: 1px solid rgba(19, 20, 69, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.3);
}

.icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.mission-card h3,
.vision-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.mission-card p,
.vision-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.values-section {
    margin-top: 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 251, 0.9));
    border-radius: 20px;
    border: 1px solid rgba(34, 60, 168, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 60, 168, 0.2);
    border-color: var(--primary);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.value-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ================= TECHNOLOGY SECTION ================= */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: rotate(5deg) scale(1.1);
}

.tech-icon i {
    font-size: 2.5rem;
    color: white;
}

.tech-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.tech-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Estilos para tech-card según tipo de fondo */
/* Color 1: Claro */
.section--bg1 .tech-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 251, 0.95));
    border: 1px solid rgba(34, 60, 168, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section--bg1 .tech-card::before {
    background: radial-gradient(circle, rgba(34, 60, 168, 0.1) 0%, transparent 70%);
}

.section--bg1 .tech-card:hover {
    border-color: rgba(34, 60, 168, 0.2);
    box-shadow: 0 20px 40px rgba(34, 60, 168, 0.15);
}

.section--bg1 .tech-icon {
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.1), rgba(34, 60, 168, 0.05));
}

.section--bg1 .tech-card:hover .tech-icon {
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.2), rgba(34, 60, 168, 0.1));
}

.section--bg1 .tech-icon i {
    color: var(--primary);
}

.section--bg1 .tech-card h4 {
    color: var(--dark);
}

.section--bg1 .tech-card p {
    color: rgba(19, 20, 69, 0.7);
}

/* Color 2: Azul oscuro (usa estilos por defecto de tech-card) */
.section--bg2 .tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section--bg2 .tech-card::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.section--bg2 .tech-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.section--bg2 .tech-card:hover .tech-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
}

.section--bg2 .tech-icon i {
    color: white;
}

.section--bg2 .tech-card h4 {
    color: white;
}

.section--bg2 .tech-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Color 3: Gris azulado medio */
.section--bg3 .tech-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(34, 60, 168, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section--bg3 .tech-card::before {
    background: radial-gradient(circle, rgba(34, 60, 168, 0.12) 0%, transparent 70%);
}

.section--bg3 .tech-card:hover {
    border-color: rgba(34, 60, 168, 0.25);
    box-shadow: 0 20px 40px rgba(34, 60, 168, 0.2);
}

.section--bg3 .tech-icon {
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.15), rgba(34, 60, 168, 0.08));
}

.section--bg3 .tech-card:hover .tech-icon {
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.25), rgba(34, 60, 168, 0.15));
}

.section--bg3 .tech-icon i {
    color: var(--primary);
}

.section--bg3 .tech-card h4 {
    color: var(--dark);
}

.section--bg3 .tech-card p {
    color: rgba(19, 20, 69, 0.75);
}

/* ================= AI SECTION ================= */
.ai-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-features {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.ai-feature {
    display: flex;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 251, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(34, 60, 168, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ai-feature:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.15);
    border-color: var(--primary);
}

.ai-feature-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.3);
}

.ai-feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.ai-feature-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.ai-feature-content p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.ai-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-animation {
    width: 100%;
    height: 100%;
    position: relative;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.neural-network .node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.neural-network .node:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.neural-network .node:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.3s;
}

.neural-network .node:nth-child(3) {
    top: 50%;
    left: 10%;
    animation-delay: 0.6s;
}

.neural-network .node:nth-child(4) {
    top: 50%;
    right: 10%;
    animation-delay: 0.9s;
}

.neural-network .node:nth-child(5) {
    bottom: 20%;
    left: 30%;
    animation-delay: 1.2s;
}

.neural-network .node:nth-child(6) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ================= TIMELINE ================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), #3f5efb);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-year {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(34, 60, 168, 0.5);
}

.timeline-content {
    flex: 1;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 251, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(34, 60, 168, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(timeline-item:nth-child(odd) ? 10px : -10px);
    box-shadow: 0 15px 40px rgba(34, 60, 168, 0.2);
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.timeline-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ================= SOLUTIONS SECTION ================= */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.solution-card {
    padding: 50px 40px;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.solution-card:hover::before {
    left: 100%;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(34, 60, 168, 0.2);
}

.solution-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(34, 60, 168, 0.3);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: rotate(5deg) scale(1.1);
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

.solution-card h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.solution-card > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.solution-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    font-size: 1rem;
}

.solution-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.solution-link:hover {
    gap: 12px;
    color: #3f5efb;
}

/* ================= INTEGRATIONS SECTION ================= */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.integration-item {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 251, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(34, 60, 168, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.integration-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 60, 168, 0.15);
    border-color: var(--primary);
}

.integration-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 60, 168, 0.1), rgba(63, 94, 251, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.integration-item:hover .integration-logo {
    background: linear-gradient(135deg, var(--primary), #3f5efb);
    transform: rotate(5deg) scale(1.1);
}

.integration-logo i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.integration-item:hover .integration-logo i {
    color: white;
}

.integration-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.integration-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ================= RESPONSIVE UPDATES ================= */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.95);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .appbar__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .about-grid,
    .ai-section {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-year {
        position: absolute;
        left: 0;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .tech-grid,
    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .mission-card,
    .vision-card {
        padding: 30px 24px;
    }

    .solution-card {
        padding: 30px 24px;
    }
}
