/* =========================================================
   VARIABLES BÁSICAS DE MARCA
   ========================================================= */

   :root {
    --ca-blue: #0790C1;
    --ca-blue-dark: #056c91;
    --ca-accent: #ff6f61;
    --ca-accent-soft: #ff896f;
    --ca-bg-soft: #f7f9fb;
    --ca-white: #ffffff;
    --ca-text-main: #333333;
    --ca-text-muted: #555555;
    --ca-text-soft: #444444;
    --ca-shadow-soft: 0 6px 20px rgba(0,0,0,0.08);
    --ca-shadow-strong: 0 10px 30px rgba(0,0,0,0.18);
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    max-height: 720px;
    overflow: hidden;
}

.hero-slider .swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    height: 100%;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay para mejorar contraste del texto sobre cualquier foto */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
    z-index: 1;
}

/* Contenido centrado en el medio de la imagen */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.hero-copy {
    color: var(--ca-white);
    max-width: 640px;
}

/* Tipografía del hero */
.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 10px 0;

    /* Color principal pedido: gris plomo con borde blanco */
    color: #4a4a4a;
    -webkit-text-stroke: 1.4px var(--ca-white);
    text-shadow: 0 1px 4px rgba(255,255,255,0.25);
}

.hero-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 18px 0;
    opacity: 0.98;
}

/* Botón del hero */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--ca-accent), var(--ca-accent-soft));
    color: var(--ca-white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-cta-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-cta:hover,
.btn-cta:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.28);
    background: linear-gradient(135deg, var(--ca-accent-soft), var(--ca-accent));
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.22);
}

/* Flechas y paginación Swiper */
.home-swiper-prev,
.home-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(0,0,0,0.35);
}

.home-swiper-prev { left: 15px; }
.home-swiper-next { right: 15px; }

.home-swiper-pagination {
    bottom: 15px !important;
}

/* =========================================================
   SECCIÓN TARJETAS PRINCIPALES (Terapia, Especialidades, etc.)
   ========================================================= */

.ca-section {
    padding: 60px 20px;
}

.ca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjeta */
.ca-card {
    background: var(--ca-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ca-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    padding-bottom: 20px;
}

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

/* Imagen */
.ca-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Título */
.ca-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 16px 20px 8px 20px;
    color: var(--ca-blue);
}

/* Texto */
.ca-card-text {
    margin: 0 20px 18px 20px;
    color: var(--ca-text-soft);
    line-height: 1.45;
    font-size: 0.95rem;
}

/* Botón */
.ca-card-btn {
    display: inline-block;
    background: var(--ca-accent);
    color: var(--ca-white);
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 20px;
    transition: background 0.2s ease;
}

.ca-card-btn:hover {
    background: var(--ca-accent-soft);
}

/* =========================================================
   SECCIÓN DIAGNÓSTICO POR IMÁGENES
   ========================================================= */

.ca-imaging {
    background-color: var(--ca-bg-soft);
    padding: 60px 20px;
}

/* Grid principal 2 columnas */
.ca-imaging-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

/* Columna izquierda: imágenes */
.ca-imaging-media {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-height: 340px;
    background: #000;
}

.ca-imaging-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ca-imaging-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Solo la activa se ve */
.ca-imaging-slide.active {
    opacity: 1;
}

/* Columna derecha: texto */
.ca-imaging-content {
    padding-right: 10px;
}

.ca-imaging-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--ca-blue);
    font-weight: 700;
}

.ca-imaging-intro {
    font-size: 0.98rem;
    color: var(--ca-text-soft);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Lista de servicios */
.ca-imaging-list {
    margin: 0 0 20px 0;
    padding-left: 18px;
    list-style: none;
}

.ca-imaging-list li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 18px;
    color: var(--ca-text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bullet personalizado */
.ca-imaging-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--ca-accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
}

/* Tabs (Rayos X / Tomografía / Ecografía) */
.ca-imaging-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--ca-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 4px;
    margin-top: 10px;
}

.ca-tab {
    border: none;
    outline: none;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: var(--ca-blue);
    transition: background 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.ca-tab:hover {
    background: #e6f5fb;
    transform: translateY(-1px);
}

.ca-tab.active {
    background: var(--ca-blue);
    color: var(--ca-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* =========================================================
   SECCIÓN “¿POR QUÉ ELEGIR CLÍNICA ÁNGELES?”
   ========================================================= */

.ca-why {
    background: var(--ca-bg-soft);
    padding: 60px 20px;
}

.ca-why-heading {
    font-size: 2.1rem;
    margin-bottom: 35px;
    color: var(--ca-blue);
}

/* Layout general */
.ca-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.ca-why-left h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--ca-text-main);
}

.ca-why-left p {
    font-size: 0.98rem;
    color: var(--ca-text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Acordeones */
.ca-why-accordions {
    background: var(--ca-white);
    border-radius: 16px;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* Título de cada item */
.ca-why-accordions .content-title {
    position: relative;
    padding: 10px 16px 10px 42px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ca-text-main);
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Icono + / - */
.ca-why-accordions .content-title::before {
    content: "+";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ca-blue);
}

/* Título activo */
.ca-why-accordions .content-title.active {
    background: var(--ca-blue);
    color: var(--ca-white);
}

.ca-why-accordions .content-title.active::before {
    content: "−";
    color: var(--ca-white);
}

/* Contenido del acordeón */
.ca-why-accordions .content {
    font-size: 0.9rem;
    color: var(--ca-text-soft);
    padding: 0 24px 10px 42px;
    line-height: 1.6;
}

/* Botón Contactar */
.ca-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid var(--ca-blue);
    color: var(--ca-blue);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--ca-white);
    transition: background 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.12s ease;
}

.ca-cta-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.ca-cta-btn:hover {
    background: var(--ca-blue);
    color: var(--ca-white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Slider derecha (owl) */
.ca-why-slider .gallery-item img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--ca-shadow-strong);
    object-fit: cover;
}

/* Botones de Owl */
.ca-why-slider .owl-prev,
.ca-why-slider .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45) !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    color: var(--ca-white) !important;
    font-size: 18px !important;
    transition: background 0.2s ease, transform 0.12s ease;
}

.ca-why-slider .owl-prev { left: 10px; }
.ca-why-slider .owl-next { right: 10px; }

.ca-why-slider .owl-prev:hover,
.ca-why-slider .owl-next:hover {
    background: rgba(0,0,0,0.65) !important;
    transform: translateY(-50%) scale(1.05);
}

/* Ajuste de padding para que no quede tan separado */
.ca-why.padding-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
}

/* =========================================================
   PLAN DULCE ESPERA
   ========================================================= */

.ca-dulce-espera {
    background: var(--ca-white);
    padding: 50px 0;
}

.ca-dulce-espera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ca-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ca-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ca-dulce-title {
    color: var(--ca-blue);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ca-dulce-desc {
    font-size: 1rem;
    color: var(--ca-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.ca-dulce-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.ca-dulce-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.55;
    color: var(--ca-text-soft);
}

.ca-dulce-list li::before {
    content: "•";
    color: var(--ca-blue);
    font-weight: bold;
    position: absolute;
    left: 10px;
    top: 4px;
}

/* Botón */
.ca-btn-dulce {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--ca-blue);
    color: var(--ca-white);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ca-btn-dulce:hover {
    background: var(--ca-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.ca-btn-dulce span {
    font-size: 1.3rem;
    line-height: 1;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */

.ca-testimonials {
    background: var(--ca-bg-soft);
    padding: 50px 0;
}

.ca-testimonials-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--ca-blue);
}

/* Carrusel */
.ca-testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
}

/* Tarjeta de testimonio */
.ca-testimonial-card {
    background: var(--ca-white);
    border-radius: 18px;
    padding: 22px 24px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

/* Comillas decorativas */
.ca-testimonial-card::before {
    content: "“";
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 3rem;
    color: rgba(7,144,193,0.12);
    font-family: serif;
}

/* Header: avatar + nombre */
.ca-testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ca-testimonial-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(7,144,193,0.2);
}

.ca-testimonial-author .name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ca-text-main);
}

.ca-testimonial-author .role {
    font-size: 0.85rem;
    color: #777777;
}

/* Texto del testimonio */
.ca-testimonial-text {
    font-size: 0.95rem;
    color: var(--ca-text-soft);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Dots de Owl */
.ca-testimonials-carousel .owl-dots {
    margin-top: 16px;
    text-align: center;
}

.ca-testimonials-carousel .owl-dot span {
    width: 9px;
    height: 9px;
    margin: 4px;
    background: #d0dde5;
    border-radius: 50%;
    display: inline-block;
}

.ca-testimonials-carousel .owl-dot.active span {
    background: var(--ca-blue);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
    .hero-slider {
        height: 60vh;
        min-height: 360px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .ca-imaging-grid,
    .ca-why-grid,
    .ca-dulce-espera-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ca-why-right {
        order: -1; /* Primero fotos en móvil */
    }
}

@media (max-width: 575px) {
    .hero-slider {
        height: 55vh;
        min-height: 320px;
        max-height: 500px;
    }

    .hero-copy {
        max-width: 92%;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .hero-text {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .btn-cta {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .home-swiper-prev,
    .home-swiper-next {
        display: none; /* en móvil dejamos solo los puntitos */
    }

    .home-swiper-pagination {
        bottom: 8px !important;
    }

    .ca-imaging {
        padding: 40px 16px;
    }

    .ca-imaging-title {
        font-size: 1.65rem;
    }

    .ca-imaging-list {
        font-size: 0.9rem;
    }

    .ca-tab {
        padding: 7px 18px;
        font-size: 0.85rem;
    }

    .ca-why {
        padding: 40px 16px;
    }

    .ca-why-heading {
        font-size: 1.8rem;
    }

    .ca-testimonials {
        padding: 40px 16px;
    }

    .ca-testimonial-card {
        padding: 18px 18px 20px;
    }
}

/* ===============================
   NOMINACIONES 2025 – CLÍNICA ÁNGELES
   =============================== */

.awards-section {
    background: linear-gradient(180deg, #f4faff, #d8ecf7);
    padding: 50px 20px 60px;
}

.awards-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.awards-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #003b59;
    margin-bottom: 10px;
}

.awards-subtitle {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 30px;
}

/* === GRID EN 2 COLUMNAS === */

.awards-grid {
    display: grid !important; /* por si main.css pisa algo */
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 24px; /* vertical / horizontal */
}

/* Tarjeta individual */
.award-item {
    background: #ffffff;
    padding: 18px 20px 22px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-align: left;
    border: 2px solid #0790C1;
    position: relative;
    overflow: hidden;
    /* animación de entrada */
    opacity: 0;
    transform: translateY(10px);
    animation: awardsFadeUp .5s ease forwards;
}

/* pequeños delays en cada tarjeta para efecto escalonado */
.award-item:nth-child(1) { animation-delay: .05s; }
.award-item:nth-child(2) { animation-delay: .10s; }
.award-item:nth-child(3) { animation-delay: .15s; }
.award-item:nth-child(4) { animation-delay: .20s; }
.award-item:nth-child(5) { animation-delay: .25s; }
.award-item:nth-child(6) { animation-delay: .30s; }
.award-item:nth-child(7) { animation-delay: .35s; }
.award-item:nth-child(8) { animation-delay: .40s; }

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

/* brillo sutil al pasar el mouse */
.award-item::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 50%;
    height: 180%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0), rgba(255,255,255,0.6), rgba(255,255,255,0.0));
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.award-item:hover::before {
    opacity: 1;
    transform: translateX(260%);
    transition: transform .7s ease;
}

.award-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

.award-item h3 {
    font-size: 1.05rem;
    color: #003b59;
    margin-bottom: 6px;
    font-weight: 700;
}

.award-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.award-item input {
    width: 100%;
    padding: 9px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid #bcd8e4;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.award-item input:focus {
    border-color: #0790C1;
    box-shadow: 0 0 0 2px rgba(7,144,193,0.18);
    transform: translateY(-1px);
}

/* Botón enviar centrado */
.awards-submit {
    display: inline-block;
    margin-top: 26px;
    background: #003b59;
    color: #fff;
    padding: 13px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.awards-submit:hover {
    background: #045075;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* === RESPONSIVE === */

@media (max-width: 900px) {
    .awards-grid {
        grid-template-columns: 1fr !important; /* una columna en tablet/móvil */
    }

    .awards-container {
        max-width: 95%;
    }

    .awards-title {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .awards-section {
        padding: 40px 14px 50px;
    }

    .award-item {
        padding: 16px 14px 20px;
    }

    .awards-title {
        font-size: 1.7rem;
    }
}

.input-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.18) !important;
}

/* === ERRORES DE VALIDACIÓN EN NOMINACIONES === */

.error-input {
    border: 2px solid #ff4d4d !important;
    background: #fff8f8;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    display: none; /* aparece por JS */
    animation: fadeIn 0.3s ease-in-out;
}

/* animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

