/* ================================================================
   ============  PARTE 1 · HERO / SLIDER PRINCIPAL  ================
   ================================================================ */


.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.hero-slider::before {
    content: none;
}

.hero-section {
    background-image:
        linear-gradient(90deg,
            rgba(62, 104, 175, 0.6) 0%,
            rgba(62, 104, 175, 0.45) 30%,
            rgba(62, 104, 175, 0.2) 65%,
            rgba(62, 104, 175, 0) 85%
        ),
        url("../images/home/fondo_slider.png");
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center center, center center;

    min-height: 460px;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 40px;
    margin-top: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* -------- Tipografía -------- */

.hero-slide h1 {
    font-size: 3rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    margin: 0;
}

.hero-title-highlight {
    color: #4FC3F7;
}

.hero-slide p {
    width: 100%;
    max-width: 570px;
    font-size: 1.25rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Poppins", sans-serif;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 🛡️ BLINDAJE: fuerza el mismo padding en TODOS los slides,
   sin importar qué clase de Tailwind (pr-12 / pl-12) haya
   quedado aplicada por el PHP/JS. Segunda capa de seguridad
   con !important, que gana sobre clases sueltas de Tailwind. */
.hero-slide .text-white {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 1024px) {
    .hero-slide .text-white {
        padding-left: 3rem !important;  /* equivalente a lg:pl-12 */
        padding-right: 0 !important;
    }
}

.hero-slide .text-white .btn-primary,
.hero-slide a.btn-primary,
.hero-slide .btn-primary {
    background-color: #4FC3F7 !important;
    border-color: #4FC3F7 !important;
    color: #ffffff !important;
}

.hero-slide .text-white .btn-primary:hover,
.hero-slide a.btn-primary:hover,
.hero-slide .btn-primary:hover {
    background-color: #2EA8DE !important;
    border-color: #2EA8DE !important;
}

/* -------- Imagen orgánica animada -------- */

.hero-image-wrapper-organic {
    position: relative;
    z-index: 2;
    padding: 20px;
    transform: translateY(20px);
}

.organic-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.organic-image {
    display: block;
    width: 100%;
    max-width: 540px;
    max-height: 430px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 0 25px 70px rgba(46, 66, 122, 0.4);
    animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    25%      { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50%      { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75%      { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* -------- Círculos decorativos -------- */

.hero-decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle-decoration {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.circle-decoration.large {
    top: -30px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: var(--accent-blue);
    opacity: 0.5;
    animation-delay: 0s;
}

.circle-decoration.medium {
    top: 50px;
    right: -15px;
    width: 90px;
    height: 90px;
    border: 4px solid var(--secondary-blue);
    animation-delay: 1s;
}

.circle-decoration.small {
    right: 110px;
    bottom: 35px;
    width: 55px;
    height: 55px;
    background: var(--light-blue);
    opacity: 0.6;
    animation-delay: 2s;
}

.circle-decoration.outline {
    right: -25px;
    bottom: -25px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--accent-blue);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-15px) scale(1.03); }
}

/* -------- Íconos flotantes -------- */

.floating-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.icon-1 {
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--blue-light) 100%);
}

.icon-2 {
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-lighter) 100%);
    animation-delay: 0.5s;
}

.icon-3 {
    bottom: -20px;
    left: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    transform: translateX(-50%);
    animation-delay: 1s;
}

.icon-4 {
    right: -30px;
    bottom: 50%;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
    animation-delay: 1.5s;
}

/* -------- Controles inferiores -------- */

.hero-bottom-controls {
    position: absolute;
    left: 30px;
    bottom: 20px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-slider-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(62, 104, 175, 1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-slider-btn-inline:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(62, 104, 175, 1);
}

/* -------- Indicadores (dots) -------- */

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 27px;
    z-index: 30;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-slider-dots .dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hero-slider-dots .dot::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-dots .dot:hover::after {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-slider-dots .dot.active {
    width: 28px;
}

.hero-slider-dots .dot.active::after {
    top: 7px;
    left: 2px;
    width: 24px;
    height: 10px;
    border-radius: 5px;
    background: #fff;
}

.hero-slider-dots .dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 50%;
}

/* -------- Feedback button -------- */

.feedback-btn {
    background: white;
    color: var(--primary-blue);
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--blue-bg-pale);
    color: var(--secondary-blue);
}

/* ================================================================
   ================  RESPONSIVE DEL HERO  ==========================
   ================================================================ */

@media (max-width: 1199px) {
    .hero-slide h1 { font-size: 2.64rem; }
    .hero-slide p  { max-width: 550px; font-size: 1.25rem; line-height: 1.6; }
    .hero-image-wrapper-organic { padding: 15px; transform: translateY(16px); }
    .organic-image { max-width: 460px; max-height: 375px; }
}

@media (max-width: 991px) {
    .hero-section { padding-top: 150px; }

    .hero-slide .text-white {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: center;
    }

    .hero-slide p {
        max-width: 100%;
        margin: 0 auto;
        font-size: 1.15rem;
        line-height: 1.55;
    }

    .hero-image-wrapper-organic { padding: 10px; transform: translateY(6px); }
    .organic-image { max-width: 410px; max-height: 315px; }

    .hero-bottom-controls {
        left: 50%;
        bottom: 18px;
        width: calc(100% - 30px);
        justify-content: center;
        transform: translateX(-50%);
    }

    .hero-slider-dots { bottom: 64px; }
}

@media (max-width: 768px) {
    .hero-section { padding-top: 150px; background-position: center top; }

    .hero-slide h1 { font-size: 2.1rem; line-height: 1.2; margin-bottom: 16px; }

    .hero-slide p { font-size: 1rem; line-height: 1.55; margin-bottom: 24px; max-width: 100%; }

    .hero-slide .btn-primary { padding: 12px 28px; font-size: 14px; }

    .hero-image-wrapper-organic { padding: 15px; margin-top: 30px; }

    .circle-decoration.large   { width: 80px; height: 80px; top: -15px; left: -15px; }
    .circle-decoration.medium  { width: 60px; height: 60px; top: 40px;  right: -10px; }
    .circle-decoration.small   { width: 40px; height: 40px; bottom: 30px; right: 80px; }
    .circle-decoration.outline { width: 70px; height: 70px; bottom: -15px; right: -15px; }

    .hero-bottom-controls { bottom: 15px; left: 15px; right: 15px; flex-wrap: nowrap; gap: 8px; }
    .hero-slider-btn-inline { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }

    .hero-slider-dots { bottom: 20px; gap: 8px; }
    .hero-slider-dots .dot { width: 24px; height: 24px; }
    .hero-slider-dots .dot.active { width: 28px; }

    .feedback-btn { padding: 9px 16px; font-size: 11px; gap: 6px; flex: 1; justify-content: center; min-width: 0; }
    .feedback-btn i { font-size: 14px; }
}

@media (max-width: 575px) {
    .hero-section { padding-top: 140px; }
    .hero-slide h1 { font-size: 2.16rem; }
    .hero-slide p  { max-width: 100%; font-size: 1.05rem; line-height: 1.5; }
    .hero-image-wrapper-organic { transform: translateY(3px); }
    .organic-image { max-width: 335px; max-height: 262px; }
    .hero-bottom-controls { gap: 8px; }
    .hero-slider-btn-inline { width: 38px; height: 38px; font-size: 13px; }
    .feedback-btn { max-width: 190px; padding: 10px 14px; font-size: 11px; }
    .hero-slider-dots { bottom: 58px; }
}

@media (max-width: 480px) {
    .hero-section { padding-top: 130px; }
    .hero-slide h1 { font-size: 1.8rem; }
    .hero-slide p  { font-size: 0.9375rem; }

    .hero-bottom-controls {
        bottom: 12px; left: 50%; right: auto;
        transform: translateX(-50%);
        justify-content: center;
        max-width: 90%;
    }

    .feedback-btn span { display: none; }
    .feedback-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; flex: 0; }
    .feedback-btn i { margin: 0; }

    .hero-slider-dots { bottom: 56px; }
}

/* ================================================================
   ============  PARTE 1.5 · BANNER FIJO 1920 × 540  ===============
   ============  (páginas internas, NO aplica al index) ============
   ================================================================

   Uso: <section class="hero-section hero-banner" id="..." data-pagina="...">
   Todas las reglas están dentro de .hero-banner, así que el index
   no se ve afectado. Las imágenes se recortan con object-fit: cover
   para llenar siempre la misma proporción (32:9 = 1920 × 540). */


.hero-section.hero-banner {
    margin-top: 72px;
    min-height: 0;
    height: auto;
    display: block;
    padding: 0;
    margin: 0;
    aspect-ratio: 1758 / 480;
    max-height: 480px;
    background-image:
    linear-gradient(90deg,
        rgba(62, 104, 175, 0.6) 0%,
        rgba(62, 104, 175, 0.45) 30%,
        rgba(62, 104, 175, 0.2) 65%,
        rgba(62, 104, 175, 0) 85%
    ),
    url("../images/home/fondo_slider.png");
}



.hero-banner .hero-educacion-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-banner .hero-educacion-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-banner .hero-educacion-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-banner .hero-educacion-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Controles y puntos sobre la imagen (mismas posiciones del hero) */
.hero-banner .hero-bottom-controls {
    z-index: 30;
}

.hero-banner .hero-slider-dots {
    z-index: 30;
}

/* Móvil: 32:9 queda muy delgado, se usa altura fija */
@media (max-width: 767px) {
    .hero-section.hero-banner {
        aspect-ratio: auto;
        height: 220px;
    }

    .hero-banner .hero-bottom-controls {
        left: auto;
        right: 12px;
        bottom: 10px;
        width: auto;
        max-width: none;
        transform: none;
        justify-content: flex-end;
        gap: 8px;
    }

    .hero-banner .hero-slider-btn-inline {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .hero-banner .hero-slider-dots {
        bottom: 18px;
        gap: 8px;
    }

    .hero-banner .hero-slider-dots .dot {
        width: 24px;
        height: 24px;
    }

    .hero-banner .hero-slider-dots .dot.active {
        width: 28px;
    }
}

/* ================================================================
   ============  PARTE 2 · RESTO DE SECCIONES  =====================
   ================================================================ */

/* -------- Beneficios -------- */

.benefits-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.benefit-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.benefit-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.benefit-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.benefit-card-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.benefit-card-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(46, 66, 122, 0.3);
}

.benefit-card-button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 104, 175, 0.4);
}

@media (max-width: 768px) {
    .benefits-section { padding: 40px 0; }
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; }
    .benefit-card-image { height: 180px; }
    .benefit-card-content { padding: 20px; }
    .benefit-card-title { font-size: 18px; }
    .benefit-card-description { font-size: 13px; }
    .benefit-card-button { padding: 10px 24px; font-size: 13px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* -------- Todo lo que necesitas, a un clic -------- */

.quick-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.quick-service {
    background: white;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.quick-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.15);
    border-color: #3b82f6;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 14px;
    color: #1e3a8a;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-service:hover .service-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg { width: 36px; height: 36px; }

.service-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.quick-service:hover .service-name { color: #2563eb; }

@media (max-width: 1024px) {
    .quick-services-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
    .quick-service { padding: 24px 16px; }
    .service-icon { width: 56px; height: 56px; }
    .service-icon svg { width: 32px; height: 32px; }
    .service-name { font-size: 0.9rem; }
}

@media (max-width: 640px) {
    .quick-services-section { padding: 60px 0; }
    .quick-services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quick-service { padding: 20px 12px; border-radius: 12px; }
    .service-icon { width: 52px; height: 52px; border-radius: 12px; }
    .service-icon svg { width: 28px; height: 28px; }
    .service-name { font-size: 0.85rem; }
}

@media (max-width: 380px) {
    .quick-services-grid { gap: 10px; }
    .quick-service { padding: 18px 10px; }
    .service-icon { width: 48px; height: 48px; }
    .service-icon svg { width: 26px; height: 26px; }
    .service-name { font-size: 0.8rem; }
}

/* -------- Agéndate con Cajasan --------
   ⚠️ NOTA: existían DOS ".agenda-section" (una gris/60px, otra con
   degradado/70px). Aquí queda SOLO UNA (la del degradado, que era
   la más reciente). Se mantienen ambos sistemas de tarjeta
   (.agenda-card y .agenda-card-compact) porque son clases distintas
   y pueden usarse en HTML diferentes; si solo usas una, borra el
   bloque que no necesites. */

.agenda-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

/* Variante A: tarjeta grande vertical */

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.agenda-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.agenda-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(62, 104, 175, 0.15);
}

.agenda-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.agenda-card:hover .agenda-icon {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(62, 104, 175, 0.3);
}

.agenda-icon svg {
    width: 44px;
    height: 44px;
    color: var(--secondary-blue);
    transition: all 0.3s ease;
}

.agenda-card:hover .agenda-icon svg {
    color: white;
    transform: scale(1.05);
}

.agenda-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.agenda-card:hover .agenda-title { color: var(--secondary-blue); }

.agenda-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .agenda-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; }
    .agenda-card { padding: 28px 20px; }
    .agenda-icon { width: 70px; height: 70px; margin-bottom: 16px; }
    .agenda-icon svg { width: 38px; height: 38px; }
    .agenda-title { font-size: 17px; margin-bottom: 10px; }
    .agenda-description { font-size: 13px; }
}

@media (min-width: 641px) and (max-width: 768px) {
    .agenda-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .agenda-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1025px) {
    .agenda-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Variante B: tarjeta compacta horizontal */

.agenda-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.agenda-card-compact {
    background: white;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agenda-card-compact:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.agenda-icon-compact {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.agenda-card-compact:hover .agenda-icon-compact {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: scale(1.05) rotate(-5deg);
}

.agenda-icon-compact svg {
    width: 32px;
    height: 32px;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.agenda-card-compact:hover .agenda-icon-compact svg { color: white; }

.agenda-content-compact { flex: 1; min-width: 0; }

.agenda-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.agenda-card-compact:hover .agenda-title-compact { color: #2563eb; }

.agenda-description-compact {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .agenda-section { padding: 50px 0; }
    .agenda-grid-compact { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; }
    .agenda-card-compact { padding: 20px; gap: 16px; }
    .agenda-icon-compact { width: 52px; height: 52px; min-width: 52px; }
    .agenda-icon-compact svg { width: 28px; height: 28px; }
    .agenda-title-compact { font-size: 1rem; margin-bottom: 4px; }
    .agenda-description-compact { font-size: 0.8125rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .agenda-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
    .agenda-grid-compact { grid-template-columns: repeat(3, 1fr); }
}

.agenda-card-compact:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

/* -------- Noticias y eventos -------- */

.news-badge {
    background: var(--blue-bg-light);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-featured {
    background: linear-gradient(135deg, var(--blue-bg-lighter) 0%, var(--blue-bg-light) 100%);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-blue);
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(46, 66, 122, 0.15);
    border-left-color: var(--primary-blue);
}

.news-featured-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(46, 66, 122, 0.2);
    border: 4px solid white;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--primary-blue);
}

.news-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.news-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(46, 66, 122, 0.15);
    border-left-color: var(--secondary-blue);
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--primary-blue);
}

.news-card-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* -------- FAQ -------- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.faq-item:hover {
    background: var(--blue-bg-light);
    border-color: var(--secondary-blue);
    transform: translateX(8px);
}

.faq-number {
    font-weight: 700;
    color: var(--secondary-blue);
    font-size: 1.1rem;
    min-width: 24px;
}

.faq-question {
    flex: 1;
    font-weight: 600;
    color: var(--gray-800);
}

.faq-icon {
    color: var(--secondary-blue);
    transition: transform 0.15s;
}

.faq-item:hover .faq-icon {
    transform: translateX(5px);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .faq-item { padding: 16px 20px; gap: 12px; }
    .faq-number { font-size: 1rem; }
    .faq-question { font-size: 14px; }
}

/* -------- Accesibilidad y mejoras generales -------- */

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .benefit-card,
    .quick-service,
    .agenda-card,
    .agenda-card-compact,
    .news-card,
    .organic-image,
    .circle-decoration,
    .floating-icon {
        animation: none;
        transition: none;
    }
}

.quick-service:focus,
.agenda-card:focus,
.benefit-card:focus,
.hero-slider-btn-inline:focus,
.feedback-btn:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}
