:root {
    --blue-dark: #1b2d5c;
    --blue-main: #1f3f78;
    --blue-petrol: #1e6a85;
    --teal-main: #1fa3a0;

    --accent-green: #28c3b5;

    --white: #ffffff;
    --white-soft: #f5f8fb;

    --text-light: #dbe7f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f4eeee;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1px;
}

/* Imágenes responsivas por defecto */
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* === NAVEGACIÓN === */
.navbar {
    background: linear-gradient(135deg, #f9fafa 0%, #f9fbfb 50%, #eff2f4 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, background 0.3s ease;
    min-height: 80px;
    padding-left: 0;
    padding-right: 0;
}

/* Estado de navbar al hacer scroll */
.navbar.scrolled {
    padding: 0.3rem 0;
    background: rgb(11, 61, 225);
    min-height: 50px;
}

.navbar.scrolled .navbar-logo-main {
    height: clamp(35px, 4.5vw, 50px);
    animation: logoScaleDown 0.3s ease-out;
}

@keyframes logoScaleDown {
    from {
        transform: translateY(-50%) scale(1);
    }

    to {
        transform: translateY(-50%) scale(0.95);
    }
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    padding-right: 30px;
    padding-left: 50px;
}

.navbar-logo-main {
    height: clamp(40px, 5vw, 60px);
    width: auto;
    max-width: 180px;
    object-fit: contain;
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFadeIn 0.8s ease-out;
}

.navbar-logo-main:hover {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.navbar-logo {
    height: clamp(35px, 3vw, 55px);
    width: auto;
    z-index: 1001;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    margin-right: auto;
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.navbar.scrolled .navbar-logo {
    height: clamp(30px, 2.5vw, 45px);
}

.navbar.scrolled .navbar-logo:hover {
    transform: scale(1.05);
}

/* Logo responsive con clamp() */
.logo-img {
    height: clamp(25px, 2.5vw, 40px);
    width: auto;
    transition: transform 420ms cubic-bezier(.2, .8, .2, 1),
        filter 320ms,
        box-shadow 320ms;
    will-change: transform;
    border-radius: 8px;
}

.navbar.scrolled .logo-img {
    height: clamp(24px, 2.2vw, 45px);
}

/* Efectos hover en logo */
.logo-img:hover,
.logo-img:focus {
    transform: scale(1.06) rotate(-4deg);
    filter: drop-shadow(0 10px 22px rgba(30, 60, 114, 0.18));
    outline: none;
}

.logo-img:focus-visible {
    box-shadow: 0 0 0 4px rgb(249, 250, 250);
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: 30px;
    padding-right: 0;
    position: relative;
    z-index: 1002;
}

.nav-menu a {
    color: #0c3483;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    overflow: visible;
    z-index: 1;
    display: inline-block;
}

/* Efecto de fondo animado con gradiente */
.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 163, 160, 0.08), rgba(40, 195, 181, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.nav-menu a:hover::before {
    opacity: 1;
}

/* Efecto de subrayado animado mejorado */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-main), var(--accent-green), var(--teal-main));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(31, 163, 160, 0.4);
}

.nav-menu a:hover::after {
    width: 90%;
}

.nav-menu a:hover {
    color: var(--teal-main);
    transform: translateY(-2px);
    font-weight: 600;
}

/* Cambiar color del menú cuando se hace scroll */
.navbar.scrolled .nav-menu a {
    color: var(--white);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
    font-weight: 600;
}

.navbar.scrolled .nav-menu a::before {
    background: linear-gradient(135deg, rgba(40, 195, 181, 0.15), rgba(31, 163, 160, 0.12));
}

.navbar.scrolled .nav-menu a::after {
    background: linear-gradient(90deg, var(--accent-green), var(--teal-main), var(--accent-green));
    height: 3px;
    box-shadow: 0 2px 8px rgba(40, 195, 181, 0.5);
}

/* Navbar secundario eliminado - logo movido al navbar principal */

/* Ajustar padding del body para el segundo navbar */

/* === MENSAJE DE POR QUE ASOCIARTE CON NOSOTROS  === */
.services-message-section {
    padding: 10rem 0 10rem;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) 50%, var(--brand-cyan) 100%);
    position: relative;
    overflow: visible;
    min-height: auto;
    display: flex;
    align-items: center;
}

/* Reducir altura de la sección de inicio */
#inicio.services-message-section {
    padding: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Estilo específico para la sección hero de inicio */
.hero-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 50%, var(--blue-petrol) 75%, var(--teal-main) 100%);
    padding-top: 3rem;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='white'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='white'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='white'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.hero-logo {
    max-width: clamp(150px, 20vw, 250px);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
}

.hero-main-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-location-title {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-cyan);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
}

.hero-tagline {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-associate-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: white;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Quitar degradado de la sección "Por qué asociarte con nosotros" */
#por-que-asociarte.services-message-section {
    background: #f8fbff;
}

.services-message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

.services-message-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.welcome-title {
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    animation: welcomeAnimation 1.2s ease-out;
    letter-spacing: -0.5px;
}

@keyframes welcomeAnimation {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }

    50% {
        transform: translateY(-5px) scale(1.05);
    }

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

.welcome-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: welcomeSubtitleAnimation 1s ease-out 0.4s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

@keyframes welcomeSubtitleAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.main-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out 0.2s both;
}

/* Título en la sección de inicio con degradado */
#inicio .main-title {
    color: white;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.services-message-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.services-description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(3, 3, 3, 0.95);
    line-height: 1.8;
    text-align: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Descripción en la sección de inicio con degradado */
#inicio .services-description {
    color: white;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.services-description strong {
    color: #1e3c72;
    font-weight: 600;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-main) 0%, var(--teal-main) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s, background 0.3s ease;
    box-shadow: 0 6px 18px rgba(31, 63, 120, 0.3);
    position: relative;
    z-index: 2;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--blue-petrol) 0%, var(--accent-green) 100%);
    box-shadow: 0 10px 24px rgba(40, 195, 181, 0.4);
    opacity: 0.98;
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }

    .navbar {
        min-height: 80px;
        padding: 0.8rem 0;
    }

    .navbar-logo-main {
        height: clamp(30px, 4.5vw, 45px);
        left: 30px;
        transform: translateY(-50%);
        max-width: 110px;
        top: 50%;
    }

    .navbar .container {
        padding: 0 14px;
        padding-left: 30px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .services-message-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }

    .services-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-logo-main {
        height: clamp(28px, 4vw, 38px);
        left: 20px;
        transform: translateY(-50%);
        max-width: 110px;
        top: 50%;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}


/* === SECCIONES === */
.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #1e3c72;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-main), var(--teal-main), var(--accent-green));
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #666;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}


/* === QUIÉNES SOMOS === */
#quienes-somos {
    background: linear-gradient(180deg, #e9eaeb 0%, #fcfdfe 100%);
    padding: 2.5rem 0;
}

#quienes-somos .section-subtitle {
    margin-bottom: 2rem;
}

#quienes-somos .about-logo {
    margin-bottom: 20px;
}

#quienes-somos .mision-vision {
    margin-top: 30px;
    gap: 1.5rem;
}

#quienes-somos .mv-item {
    padding: 1.8rem;
}

/* === IMAGES, LOGOS & CARD BASE HELPERS ===
   Consolidated helpers to avoid duplicated rules across the stylesheet.
*/

/* Generic responsive images */
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Navbar logo (fluid) */
.logo-img {
    height: clamp(28px, 2.5vw, 50px);
    width: auto;
}

/* About/section logo */
.about-logo {
    max-width: clamp(120px, 18vw, 220px);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

/* Logo específico en la sección de servicios */
.services-message-section .about-logo {
    max-width: clamp(150px, 20vw, 280px);
    margin-bottom: 2rem;
}

/* Logo específico en la sección Quiénes Somos */
#quienes-somos .about-logo {
    max-width: clamp(120px, 18vw, 220px);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#quienes-somos .about-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Small utilities for content width */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    text-align: center;
}

/* Reusable card base (shared styles for service cards, associate cards, news cards, etc.) */
.card-base {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: transform 320ms cubic-bezier(.2, .9, .3, 1), box-shadow 320ms;
}

/* Use the card-base as a base for existing selectors */
.service-card {
    /* card-base applied via selector grouping below; kept for clarity */
}

.associate-item {}

/* Mission/Vision grid */
.mision-vision {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 2px solid var(--brand-blue);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mv-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 149, 192, 0.1), transparent);
    transition: left 0.6s;
}

.mv-item:hover::before {
    left: 100%;
}

.mv-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(39, 149, 192, 0.2);
    border-color: #3b82f6;
}

.mv-item h3 {
    position: relative;
    z-index: 1;
}

.mv-item p {
    position: relative;
    z-index: 1;
}


/* === SERVICIOS === */

.section-title {
    font-size: 2.5rem;
    color: var(--blue-main);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-main) 0%, var(--teal-main) 100%);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Carrusel contenedor */
.services-carousel {
    position: relative;
    display: flex;
    gap: 2rem;
    overflow: hidden;
    justify-content: center;
    align-items: stretch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 2rem 0;
}

/* Tarjetas */
.service-card {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    scroll-snap-align: center;
    perspective: 1000px;
    padding: 2rem 1rem;
}

.service-card:hover {
    transform: rotateY(8deg) translateY(-8px) scale(1.03);
    border-color: var(--teal-main);
    background: linear-gradient(135deg, rgba(31, 163, 160, 0.05), rgba(40, 195, 181, 0.08));
    box-shadow: 0 16px 30px rgba(31, 163, 160, 0.25);
}

/* Iconos */
.service-icon {
    font-size: 3.5rem;
    color: var(--blue-main);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--teal-main);
}

/* Títulos y descripciones */
.service-title {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 1rem;
    color: #555;
}

/* Navegación de puntos */
.services-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.services-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(31, 63, 120, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.services-dot:hover {
    background: var(--accent-green);
}

.services-dot.active {
    background: var(--teal-main);
    width: 35px;
    border-radius: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
    .service-card {
        flex: 0 0 85%;
    }
}

.services-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    /* permitir que sombras/transforms no se recorten y mejorar render */
    margin-top: 3rem;
    padding: 1rem 0;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    scroll-snap-type: x mandatory;
    /* espacio lateral para centrar la primera/última tarjeta y evitar cortes */
    padding-inline: calc((100% - 280px) / 2);
    scroll-padding-inline: calc((100% - 280px) / 2);
}

.services-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.service-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(31, 163, 160, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--teal-main);
    background: linear-gradient(135deg, rgba(31, 163, 160, 0.05), rgba(40, 195, 181, 0.08));
    box-shadow: 0 15px 40px rgba(31, 163, 160, 0.3);
}

.service-icon {
    font-size: 3.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    /* avoid heavy 3D rotation which can cause repaint jank; scale only */
    transform: scale(1.15);
    color: var(--accent-green);
}

/* Performance hints: advise browser which properties will change */
.services-carousel>.service-card,
.services-carousel>.service-card * {
    will-change: transform;
    backface-visibility: hidden;
}

.service-card h3 {
    color: var(--blue-main);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--teal-main);
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* Footer debajo de carruseles: botón 'Ver todos' */
.carousel-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.see-all-btn {
    background: linear-gradient(135deg, var(--blue-main) 0%, var(--teal-main) 100%);
    color: var(--white);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(31, 163, 160, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.see-all-btn:hover::before {
    left: 100%;
}

.see-all-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--blue-petrol) 0%, var(--accent-green) 100%);
    box-shadow: 0 10px 24px rgba(40, 195, 181, 0.4);
    opacity: 0.98;
}


/* === ASOCIADOS === */
#asociados {
    background: linear-gradient(135deg, var(--white-soft) 0%, rgba(31, 63, 120, 0.03) 50%, var(--white-soft) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.associates-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-inline: calc((100% - 300px) / 2);
}

.associates-carousel::-webkit-scrollbar {
    display: none;
}

/* Borde con efecto de luz al pasar */
.associate-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(31, 163, 160, 0.3), rgba(40, 195, 181, 0.25));
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.associate-item:hover::after {
    opacity: 1;
}

.associate-item:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 18px 40px rgba(58, 113, 216, 0.76);
}

/* Contenedor de logo centrado */
.associate-item .agencia-logo {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.associate-item .agencia-logo img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.35s ease;
}

.associate-item:hover .agencia-logo img {
    transform: scale(1.08);
}

/* Texto dentro de la tarjeta */
.associate-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.associate-item p {
    font-size: 0.95rem;
    color: var(--blue-petrol);
    font-weight: 500;
}

/* Tarjeta activa o centrada */
.associate-item.active-card,
.associate-item.centered {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 0 24px 60px rgba(30, 60, 114, 0.22);
    z-index: 5;
}

/* Logytrade igual tamaño que las demás */
.associate-item[data-agencia*="LOGYTRADE"] {
    width: 300px !important;
    height: 340px !important;
}

.associate-item {
    flex: 0 0 300px;
    width: 300px;
    min-height: 340px;
    height: auto;
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: visible;
    scroll-snap-align: center;
}

.associate-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main), var(--accent-green));
    -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.4s ease;
}

.associate-item:hover::before {
    opacity: 1;
}

.associate-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px rgba(30, 60, 114, 0.2);
}

.associate-item h4 {
    font-size: 1.05rem;
    color: var(--blue-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    font-weight: 600;
}

.associate-item p {
    color: var(--blue-petrol);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.4rem 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.associate-item p.agent-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal-main);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Tarjeta centrada */
.associate-item.active-card,
.associate-item.centered {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(31, 163, 160, 0.3);
    border-color: var(--accent-green);
    z-index: 10;
}


/* === Centrado limpio de logos en Nuestros Asociados === */
.associate-item .agencia-logo,

.agencia-logo {
    width: 100%;
    height: 120px;
    /* altura uniforme para todas las tarjetas */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    background: transparent;
    /* evita fondos o bordes raros */
    overflow: hidden;
    /* evita que logos grandes sobresalgan */
}

.associate-item .agencia-logo img,

.agencia-logo img {
    max-width: 85%;
    /* deja algo de aire alrededor */
    max-height: 100%;
    /* se adapta al alto del contenedor */
    object-fit: contain;
    /* mantiene proporción original */
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
    /* sutil sombra para resaltar */
    transition: transform 0.3s ease;
}

/* Pequeña animación al pasar el mouse */
.associate-item:hover .agencia-logo img {
    transform: scale(1.05);
}

.associate-item .agencia-logo img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Asegurar que las tarjetas no tengan fondo blanco */
.associate-item {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ajustar tamaño uniforme para Logytrade */
.associate-item p {
    text-align: center;
}

.associate-item[data-agencia*="LOGYTRADE"],
.associate-item h4:has(span:contains("LOGYTRADE")) {
    min-height: 340px !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* === CONTACTO === */

#contacto {
    background: linear-gradient(180deg, var(--white-soft) 0%, rgba(31, 163, 160, 0.05) 100%);
    position: relative;
    overflow: visible;
    padding-bottom: 8rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(31, 163, 160, 0.3);
    transition: all 0.3s;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.contact-item h4 {
    color: var(--blue-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--blue-petrol);
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal-main);
    box-shadow: 0 0 10px rgba(31, 163, 160, 0.25);
}

.contact-form textarea {
    resize: horizontal;
    min-height: 150px;
}

.contact-form button {
    width: 100%;
    background: linear-gradient(135deg, #8A9AB0 0%, var(--primario) 100%);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.map-container {
    margin-top: 4rem;
    margin-bottom: 6rem;
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(31, 63, 120, 0.15);
    border: 2px solid rgba(31, 163, 160, 0.1);
    position: relative;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: 0;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #ffd700;
    transform: scale(1.2) rotate(360deg);
    background: rgba(255, 215, 0, 0.2);
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
/* Agregar este código al final de tu archivo css/style.css */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 32px;
    color: white;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animación de pulso para llamar la atención */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }
}

/* === DETALLES VISUALES ADICIONALES === */

/* Efecto de brillo en tarjetas de servicios */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* Mejora en sombras de tarjetas */
.mv-item {
    backdrop-filter: blur(10px);
}

.mv-item:hover {
    backdrop-filter: blur(15px);
}

/* Efecto de resplandor en iconos */
.service-icon {
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.2));
    transition: filter 0.3s ease;
}

.service-card:hover .service-icon {
    filter: drop-shadow(0 4px 8px rgba(31, 163, 160, 0.4));
}

/* Animación suave para elementos al aparecer */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.mv-item:nth-child(1) {
    animation: slideInFromLeft 0.6s ease-out;
}

.mv-item:nth-child(2) {
    animation: slideInFromLeft 0.8s ease-out;
}

.mv-item:nth-child(3) {
    animation: slideInFromLeft 1s ease-out;
}


/* === ANIMACIÓN DE BARCO === */
.ship-animation {
    position: absolute;
    bottom: 1rem;
    left: -100px;
    width: 120px;
    height: 120px;
    z-index: 5;
    pointer-events: none;
    animation: shipSail 20s linear infinite;
}

.ship-icon {
    font-size: 5rem;
    color: rgba(30, 64, 175, 0.6);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: shipFloat 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes shipSail {
    0% {
        left: -100px;
        transform: translateY(0);
    }

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

    50% {
        transform: translateY(0);
    }

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

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

@keyframes shipFloat {

    0%,
    100% {
        transform: rotate(-2deg) translateY(0);
    }

    25% {
        transform: rotate(2deg) translateY(-5px);
    }

    50% {
        transform: rotate(-1deg) translateY(0);
    }

    75% {
        transform: rotate(1deg) translateY(-5px);
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .ship-animation {
        width: 80px;
        height: 80px;
        bottom: 5%;
    }

    .ship-icon {
        font-size: 3.5rem;
    }

    .ship-animation {
        animation: shipSail 15s linear infinite;
    }
}

/* =====================================================
   SECCIÓN DE NOTICIAS - NOTICIA DEL DÍA
   ===================================================== */

.noticias-section {
    background: linear-gradient(180deg, #f8fafc 0%, var(--white-soft) 100%);
    padding: 4rem 0;
}

.noticias-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.noticias-header .section-title {
    margin-bottom: 0;
}

.btn-admin-noticias {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 163, 160, 0.25);
}

.btn-admin-noticias:hover {
    background: linear-gradient(135deg, var(--blue-petrol), var(--accent-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 163, 160, 0.35);
}

.btn-admin-noticias i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .noticias-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   MODAL AGREGAR NOTICIA
   ===================================================== */

.noticia-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.noticia-modal .modal-body {
    padding: 1.5rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-hint {
    font-weight: 400;
    color: #999;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e5ec;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-main);
    box-shadow: 0 0 0 3px rgba(31, 163, 160, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-cancelar {
    padding: 0.7rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancelar:hover {
    border-color: #bbb;
    color: #333;
    background: #f5f5f5;
}

.btn-guardar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 163, 160, 0.25);
}

.btn-guardar:hover {
    background: linear-gradient(135deg, var(--blue-petrol), var(--accent-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 163, 160, 0.35);
}

@media (max-width: 768px) {
    .noticia-modal {
        width: 95%;
        max-height: 90vh;
    }

    .noticia-modal .modal-body {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancelar,
    .btn-guardar {
        width: 100%;
        justify-content: center;
    }
}

.noticia-destacada-unica {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8ecf1;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.3s ease;
}

.noticia-destacada-unica:hover {
    box-shadow: 0 12px 40px rgba(31, 163, 160, 0.12);
    border-color: rgba(31, 163, 160, 0.3);
}

.noticia-destacada-unica::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-main), var(--teal-main));
}

.noticia-destacada-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, rgba(31, 163, 160, 0.1), rgba(40, 195, 181, 0.15));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.noticia-destacada-unica:hover .noticia-destacada-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(31, 163, 160, 0.15), rgba(40, 195, 181, 0.2));
}

.noticia-destacada-icon i {
    font-size: 2rem;
    color: var(--teal-main);
}

.noticia-destacada-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.noticia-destacada-content .noticia-fecha {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.noticia-destacada-content .noticia-fecha i {
    font-size: 0.85rem;
}

.noticia-destacada-content h3 {
    color: var(--blue-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.noticia-destacada-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Contenido expandible */
.noticia-expandible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-bottom: 0;
}

.noticia-expandible.activo {
    max-height: 1200px;
    opacity: 1;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8ecf1;
}

.noticia-detalle {
    margin-bottom: 1.2rem;
}

.noticia-detalle h4 {
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-detalle h4 i {
    color: var(--teal-main);
    font-size: 0.95rem;
}

.noticia-detalle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.noticia-detalle ul li {
    color: #555;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px dashed #e8ecf1;
}

.noticia-detalle ul li:last-child {
    border-bottom: none;
}

.noticia-detalle ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--teal-main);
    border-radius: 50%;
}

.noticia-detalle p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.noticia-acciones {
    margin-top: 1rem;
}

.noticia-accion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: #f0f4f8;
    color: var(--blue-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.noticia-accion-btn:hover {
    background: var(--blue-main);
    color: white;
}

.noticia-btn-destacada {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.noticia-btn-destacada:hover {
    background: linear-gradient(135deg, var(--blue-petrol), var(--teal-main));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 163, 160, 0.3);
}

.noticia-link-dof {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.noticia-link-dof:hover {
    background: var(--accent-green);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 195, 181, 0.4);
}

.noticia-btn-destacada i {
    transition: transform 0.3s ease;
}

.noticia-btn-destacada.activo i {
    transform: rotate(180deg);
}

.noticia-btn-destacada.activo .btn-texto::after {
    content: 'Leer menos';
}

.noticia-btn-destacada.activo .btn-texto {
    font-size: 0;
}

.noticia-btn-destacada.activo .btn-texto::after {
    font-size: 1rem;
}

.noticia-btn-destacada i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.noticia-btn-destacada:hover i {
    transform: translateX(4px);
}

/* Responsive noticia destacada */
@media (max-width: 768px) {
    .noticia-destacada-unica {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .noticia-destacada-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .noticia-destacada-icon i {
        font-size: 1.8rem;
    }

    .noticia-destacada-content h3 {
        font-size: 1.25rem;
    }

    .noticia-destacada-content p {
        font-size: 0.95rem;
    }
}

/* =====================================================
   MODAL DE SERVICIOS
   ===================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.servicios-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicios-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--teal-main);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 50%, var(--teal-main) 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.modal-header h2 i {
    color: var(--accent-green);
}

.modal-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.servicio-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.servicio-item:hover {
    background: white;
    border-color: var(--teal-main);
    box-shadow: 0 8px 25px rgba(31, 163, 160, 0.15);
    transform: translateY(-3px);
}

.servicio-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.servicio-item:hover .servicio-icon {
    transform: scale(1.1) rotate(5deg);
}

.servicio-icon i {
    font-size: 1.5rem;
    color: white;
}

.servicio-content h3 {
    color: var(--blue-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.servicio-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(31, 163, 160, 0.25);
}

.modal-btn:hover {
    background: linear-gradient(135deg, var(--blue-petrol), var(--accent-green));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(31, 163, 160, 0.35);
}

/* Scrollbar del modal */
.servicios-modal::-webkit-scrollbar {
    width: 8px;
}

.servicios-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.servicios-modal::-webkit-scrollbar-thumb {
    background: var(--teal-main);
    border-radius: 10px;
}

.servicios-modal::-webkit-scrollbar-thumb:hover {
    background: var(--blue-petrol);
}

/* Responsive modal */
@media (max-width: 768px) {
    .servicios-modal {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 2rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

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

    .servicio-item {
        flex-direction: column;
        text-align: center;
    }

    .servicio-icon {
        margin: 0 auto;
    }
}

/* =====================================================
   SECCIÓN DE CERTIFICACIONES
   ===================================================== */

.certificaciones-section {
    margin-top: 3rem;
    text-align: center;
}

.certificaciones-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-main);
    margin-bottom: 1.5rem;
}

.certificacion-card {
    display: inline-block;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(31, 163, 160, 0.15);
}

.certificacion-logo {
    max-width: 120px;
    height: auto;
    display: block;
}