* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-montserrat-regular: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-montserrat-semibold: 'Montserrat SemiBold', 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
#idSpinner {
    display: none;
}
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #8493b6;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    right: 16px;
    top: 30%;
    transform: translateY(-50%);
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    color: var(--color-text-light);
    transition: var(--transition);
    pointer-events: none;
    z-index: 99;
}
.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #314e91;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
    


html {
 scroll-behavior: smooth;
}


body,
.main-container,
.hero-premium-carousel,
.hero-content-container,
.hero-text-wrapper,
.hero-main-title,
.hero-subheading,
.cta-button,
.primary-cta,
.secondary-cta,
.about-us-history,
.about-us-img-wrapper,
.frase-familia,
.solicitudService {
    font-family: var(--font-montserrat-regular);
}

h1, h2, h3,
.hero-main-title,
.about-us-history h3,
.frase-familia h2 {
    font-family: var(--font-montserrat-semibold);
}

p,
.hero-subheading,
.about-us-history p,
.frase-familia p {
    font-family: var(--font-montserrat-regular);
}
.about-us h2 {
    padding: 90px 0;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #314e91 60%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s cubic-bezier(.4,0,.2,1);
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Estilos Generales ===== */
body {
    line-height: 1.6;
    color: #444;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow-x: hidden;
}
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} 

/* ===== Hero Premium :v ===== */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 73, 222, 0.363) 0%, rgba(64, 143, 223, 0.418) 100%);
    mix-blend-mode: multiply;
}

.hero-content-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    z-index: 2;
}

.hero-text-wrapper {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(23, 20, 20, 0.509);
    margin-top: -30px;
}

.hero-subheading {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 38px;
    z-index: 3;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.13rem;
    font-weight: 600;
    padding: 0.85em 2.1em;
    border-radius: 32px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
    box-shadow: 0 2px 12px rgba(49, 78, 145, 0.08);
    border: none;
    outline: none;
    position: relative;
    letter-spacing: 0.01em;
    user-select: none;
}

.primary-cta {
    background: linear-gradient(90deg, #314e91 40%, #3498db 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.13);
}
.primary-cta:hover,
.primary-cta:focus {
    background: linear-gradient(90deg, #283f75 60%, #1976d2 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(25, 118, 210, 0.18);
}

.secondary-cta {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(49, 78, 145, 0.07);
}
.secondary-cta:hover,
.secondary-cta:focus {
    background: rgba(255,255,255,0.22);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(49, 78, 145, 0.13);
}

.cta-icon {
    width: 1.3em;
    height: 1.3em;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.2em;
    transition: transform 0.18s;
}

.cta-button:hover .cta-icon,
.cta-button:focus .cta-icon {
    transform: translateX(4px) scale(1.08);
}

@media (max-width: 600px) {
    .hero-cta-buttons {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
        padding: 0 43px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
    }
    .cta-button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.85em 1.2em;
        box-sizing: border-box;
    }
}

/* @media (max-width: 600px) {
    .hero-cta-buttons {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
    }
    .cta-button {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.85em 1.2em;
    }
} */
/* ===== Hero Premium Carousel Adaptado ===== */
.hero-premium-carousel {
    position: relative;
    height: 85vh;
    min-height: 650px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #ffffffea;
    isolation: isolate;
    background: #1a2740;
}

.hero-premium-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
    z-index: 1;
    display: flex;
    align-items: center;
}
.hero-premium-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    position: relative;
    display: flex;
}


.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(49, 78, 145, 0.7);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5em 0.9em;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
    box-shadow: 0 2px 12px rgba(49, 78, 145, 0.18);
}
.hero-carousel-arrow:hover {
    background: #314e91;
}
.hero-carousel-arrow.prev { left: 24px; }
.hero-carousel-arrow.next { right: 24px; }

.hero-carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.hero-carousel-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    border: 2px solid #314e91;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
}
.hero-carousel-dot.active {
    background: #314e91;
    opacity: 1;
}



@media (max-width: 700px) {
    .hero-premium-carousel {
        min-height: 320px;
        height: 60vh;
        max-height: 500px;
    }
    .hero-carousel-arrow {
        font-size: 1.5rem;
        padding: 0.3em 0.6em;
    }
    .hero-carousel-dots {
        bottom: 16px;
    }
}
/* ===== Contenido Principal ===== */

.main-content {
    flex: 1;
    min-width: 300px;
}
.section-divider {
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 20px auto 30px;
    border-radius: 2px;
}
.sectiondivider {
    width: 100%;
    height: 20px;
    background: #314e91;
    margin: 20px auto 30px;
}

/* ===== h1 Styles ===== */
h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color, #222);
  transition: color 0.2s;
}
.hero-section h1 {
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}
.dark-section h1 {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.accent-heading h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.accent-heading h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--secondary-color, #3498db);
  border-radius: 2px;
}
.centered-heading h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}
.gradient-heading h1 {
  background: linear-gradient(135deg, var(--primary-color, #1976d2), var(--secondary-color, #3498db));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.animated-heading h1 {
  animation: fadeInUp 0.8s ease-out both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========  SOMOS ============ */
.about-us-flex {
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
    position: relative;
    margin-top: -30px;
    margin-bottom: 0;
    padding: 44px 0 0 40px;
    align-items: stretch;
    justify-content: space-between;
}

.about-us-history {
    flex: 7 1 320px;
    padding: 0 0 0 12px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-us-history h3 {
    font-size: 2.6rem;
    color: #314e91;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-us-history .section-divider {
    margin: 0 0 18px 0;
    background: linear-gradient(90deg, #314e91 0%, #1976d2 100%);
    width: 50px;
    height: 4px;
    border-radius: 2px;
}

.about-us-history p {
    font-size: 1.13rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.97;
}

.btn-nosotros {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(49, 78, 145, 0.07);
    transition: box-shadow 0.18s;
}
.btn-nosotros button {
    background: linear-gradient(90deg, #314e91 60%, #3498db 100%);
    color: #fff;
    border: none;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 0.7em 2em;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.18s, transform 0.13s;
    box-shadow: 0 2px 8px rgba(49, 78, 145, 0.09);
    outline: none;
}
.btn-nosotros button:hover,
.btn-nosotros button:focus {
    background: linear-gradient(90deg, #283f75 60%, #1976d2 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(49, 78, 145, 0.13);
}

.about-us-img-wrapper {
    flex: 2 1 1200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-width: 0;
    min-height: 700px;
    width: 100vw;
    max-width: 700px;
    overflow: hidden;
    margin: 0 0 0 auto;
    right: 0;
}
.about-us-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    position: absolute;
    top: 0; left: 0; 
    z-index: 1;
}
 

/* 

==================== Familia ====================

*/

.Imgs-familia-container {
    margin: 0 0;
    max-width: 100vw;
    width: 100vw;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
    clip-path: inset(0); 
}

.Imgs-familia {
    position: relative;
    width: 100vw;
    min-width: 100vw;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    height: 35vw;
    min-height: 220px;
    max-height: 600px;
    background: #222;
}

.Imgs-familia img {
    position: fixed; 
    top: 0;
    left: 0;
    display: block;
    width: 100vw;
    min-width: 100vw;
    height: 100vh;
    min-height: 220px;
    max-height: 100vh;
    object-fit: cover;
    border-radius: 0;
    z-index: 1;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(.4,0,.2,1);
}

.Imgs-familia::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 22, 82, 0.189) 0%, rgba(25, 118, 210, 0.418) 100%);
    z-index: 2;
    border-radius: 0;
    pointer-events: none;
}
.icon-client {
    display: block;
    margin: 0 auto 24px auto;
    width: 90px;
    height: 90px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(49, 78, 145, 0.15));
    background: linear-gradient(135deg, #e3eafc 0%, #f5f8ff 100%);
    border-radius: 50%;
    padding: 16px;
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(49, 78, 145, 0.08);
}
.icon-client:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 8px 24px rgba(49, 78, 145, 0.22));
    box-shadow: 0 6px 24px rgba(49, 78, 145, 0.13);
}
.services img .icon-client{
    display: block;
    margin: 0 auto 24px auto;
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(49, 78, 145, 0.10));
    transition: transform 0.3s, filter 0.3s;
}
.services img:hover .icon-client{
    transform: scale(1.06) rotate(-2deg);
    filter: drop-shadow(0 6px 18px rgba(49, 78, 145, 0.18));
}
.frase-familia{
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    justify-content: justify;
    color: #ffffff;
}
.frase-familia h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(23, 20, 20, 0.509);
}
.frase-familia p {
    font-size: 1.33rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 1px 1px rgba(23, 20, 20, 0.929);
    font-weight: 450;
    justify-content: justify;
}

@media (max-width: 900px) {

    .frase-familia h2 {
        font-size: 2rem;
    }
    .frase-familia p {
        font-size: 1.13rem;
    }
}
@media  (max-width: 850px) {
    .Imgs-familia {
        height: 40vh;
        min-height: 220px;
        max-height: 100vh;
    }
    .Imgs-familia img {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        width: 90vw;
        height: 100vh;
        min-height: 220px;
        object-fit: cover;
        border-radius: 0;
        z-index: 1;
        will-change: transform;
        transition: transform 0.2s cubic-bezier(.4,0,.2,1);
    }

}
@media (max-width: 600px) {
    .Imgs-familia-container {
        padding: 0;
    }
    /* .Imgs-familia {
        height: 38vw;
        min-height: 120px;
        max-height: 220px;
    }
    .Imgs-familia img {
        height: 38vw;
        min-height: 120px;
        max-height: 220px;
    } */
    .Imgs-familia {
        height: 40vh;
        min-height: 220px;
        max-height: 100vh;
    }
    .Imgs-familia img {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        width: 100vw;
        height: 100vh;
        min-height: 220px;
        object-fit: cover;
        border-radius: 0;
        z-index: 1;
        will-change: transform;
        transition: transform 0.2s cubic-bezier(.4,0,.2,1);
    }
    .frase-familia {
        padding: 0 10px;
        width: 100vw;

    }
    .frase-familia h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    .frase-familia p {
        font-size: 1rem;
        max-width: 98vw;
    }
}


/* Hands =================================================================*/
.frase-mano p {
    font-size: clamp(1rem, 2vw, 6rem);
    line-height: 1.2;
    font-weight: 750;
    margin-bottom: 1rem;
    color: var(--dark-color, #5a5b7b);
    transition: color 0.2s;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.frase-mano p.in-view {
    animation: fadeInUp 1.1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-manos {
    background: linear-gradient(to bottom, rgb(253, 253, 255) 0%, rgb(221, 231, 248) 39%, rgb(255, 255, 255) 100%);
    margin: 0 -20px 0 -20px;
    padding: 0 0 20px 0;
    width: calc(100% + 40px);
}  

.imgs-mano {
    position: relative;
    width: 100%;
}

.hands-row {
    text-align: center;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%) translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-80px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.hand1,
.hand2 {
    width: 50%;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    /* Sin animación por defecto */
    opacity: 0;
    margin-top:12px;
}

.hand1.in-view {
    transform: translateY(-80px);
    animation: slideInLeft 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 1;
    margin-top:12px;
}

.hand2.in-view {
    animation: slideInRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 1;
}

.frase-mano {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-weight: bold;
    width: 80%;
    max-width: 400px;
}

.frase-mano p {
    margin: 0;
}
/* Afiliacion */
:root {
    --font-primary: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-semibold: 'Montserrat', system-ui, -apple-system, sans-serif;
    --color-primary: #4361ee;
    --color-primary-hover: #3a56d4;
    --color-text: #2b2d42;
    --color-text-light: #6c757d;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-card: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos base */
.consultar-afiliacion {
    padding: 80px 0;
    background-color: var(--color-bg);
    font-family: var(--font-primary);

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Sección de texto */
.text-content {
    padding-right: 40px;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #314e91;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: var(--font-semibold);
}

.subtitulo {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.section-dividerr {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #4895ef 100%);
    margin: 24px 0;
    border-radius: 2px;
}
@media (max-width: 576px) {
    .section-dividerr {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}
/* Tarjeta del formulario */
.form-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.form-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.instruccion {
    font-size: 1.16rem;
    color: rgba(39, 39, 144, 0.808);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Grupo de entrada */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Campo de entrada mejorado */
.campo-input {
    position: relative;
    width: 100%;
}

.campo-input input {
    width: 100%;
    padding: 18px 24px 10px 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-bg);
    font-family: var(--font-primary);
    box-sizing: border-box;
}

.campo-input input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.campo-input label {
    position: absolute;
    left: 48px;
    top: 8px;
    color: var(--color-text-light);
    transition: var(--transition);
    pointer-events: none;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.campo-input input:focus + label,
.campo-input input:not(:placeholder-shown) + label {
    transform: translate(-28px, -28px) scale(0.85);
    color: var(--color-primary);
    font-weight: 500;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.campo-input input:focus ~ .input-icon {
    color: var(--color-primary);
}

/* Botón mejorado */
.btn-consultar {
    background: linear-gradient(90deg, #314e91 60%, #3498db 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-semibold);
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.2);
}

.btn-consultar:hover {
    background: linear-gradient(90deg, #2e4887 60%, #308dcb 100%);
    box-shadow: 0 4px 10px rgba(9, 21, 75, 0.3);
    transform: translateY(-1px);
}

.btn-consultar svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn-consultar:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .text-content {
        padding-right: 0;
        text-align: center;
    }
    
    .section-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .form-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .consultar-afiliacion {
        padding: 60px 0;
    }
    
    .form-card {
        padding: 30px 24px;
    }
    
    .text-content h2 {
        font-size: 2rem;
    }
    
    .btn-consultar {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}


/* 

    Sedes 

*/
.sedes-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: stretch;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 32px;
}
.sede-card {
/*     flex: 1 1 380px; */
    min-width: 320px;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 36px rgba(49,78,145,0.13), 0 2px 8px rgba(49,78,145,0.07);
    padding: 40px 36px 32px 36px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1.5px solid #e3eafc;
    position: relative;
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.18s;
    overflow: hidden;
    text-align: justify;
}
.sede-card:before {
    content: "";
    position: absolute;
    top: -60px; left: -60px;
    width: 160px; height: 160px;
    background: linear-gradient(135deg, #e6ecfa 60%, #f7faff 100%);
    border-radius: 50%;
    opacity: 0.25;
    z-index: 0;
}
.sede-card:hover {
    box-shadow: 0 16px 48px rgba(49,78,145,0.22), 0 4px 16px rgba(49,78,145,0.13);
    border-color: #b6c8f7;
    transform: translateY(-4px) scale(1.015);
}
.sede-card h3 {
    margin-top: 0;
    color: #314e91;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    z-index: 1;
    position: relative;
}
.sede-info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 1;
    position: relative;
}
.sede-info-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.sede-info-icon {
    color: #314e91;
    font-size: 1.5em;
    margin-top: 2px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sede-info-row strong {
    color: #314e91;
    font-weight: 700;
    font-size: 1.08em;
}
.sede-card a {
    color: #314e91;
    text-decoration: underline;
    transition: color 0.15s;
    font-weight: 500;
}
.sede-card a:hover {
    color: #1d2d5c;
    text-decoration: underline;
}
.sede-card .sede-action {
    margin-top: 12px;
    z-index: 1;
    position: relative;
}
.sede-card .sede-action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #314e91;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 1.08em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(49,78,145,0.08);
    transition: background-color 0.18s, color 0.18s;
}
.sede-card .sede-action a:hover {
    background: #223a6b;
    color: #fff;
}
.sede-map-container {
    flex: 1 1 380px;
    min-width: 320px;
    max-width: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sede-map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(49,78,145,0.10);
    transition: box-shadow 0.2s;
}
@media (max-width: 900px) {
    .sedes-flex-container {
        flex-direction: column;
        gap: 32px;
    }
    .sede-map-container, .sede-card {
        max-width: 100%;
    }
    .sede-card .sede-action a{
        margin-bottom: 16px;
    }
}

@media (max-width: 600px) {
    .sedes-flex-container {
        flex-direction: column;
    }
    .sede-principal-label {
        display: block;
    }
    .sede-card {
        order: 1;
    }
    .sede-map-container {
        order: 2;
    }
    .sede-card .sede-action a{
        margin-bottom: 16px;
    }
}
@media (max-width: 900px) {
    .sedes-flex-container {
        flex-direction: column;
    }
    .sede-card {
        order: 1;
    }
    .sede-map-container {
        order: 2;
    }
    .sede-card .sede-action a{
        margin-bottom: 16px;
    }
}

/* EMERGENCIAAAAAAA CARRUSEL XD */

.Emergency {
    display: block;
    margin: 0 auto 22px auto;
    width: 600px;
    max-width: 40vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(49, 78, 145, 0.18));
    border-radius: 18px;
    transition: transform 0.22s, filter 0.22s, box-shadow 0.22s;
}

@media (max-width: 600px) {
    .Emergency {
        width: 80px;
        padding: 8px 10px;
    }
}
@media (max-width: 600px) {
    .Emergency {
        display: block;
        width: 80vw;
        max-width: 100vw;
        min-width: 0;
        height: auto;
        max-height: 220px;
        object-fit: contain;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
}




/* Obituarios */

.contact .php-email-form {
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 30px;
  margin-bottom: 30px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input::focus,
.contact .php-email-form textarea::focus {
  background-color: #68A4C4;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #68A4C4;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
}

.contact .php-email-form button[type=submit]:hover {
  background: #8dbad2;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



.obituarios {
    padding: 90px 0 0 0;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

}
.obituarios > div {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.obituarios h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #314e91 60%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s cubic-bezier(.4,0,.2,1);
    text-align: center;
}