/*
Theme Name: Dr. Alan Ponce
Theme URI: https://cirujanodemano.mx
Author: Click-Advisor
Author URI: https://click-advisor.com
Description: Tema a medida para el Dr. Alan Ponce Alvarez — ortopedia, cirugía de la mano, plexo braquial y nervio periférico. Portado 1:1 desde el diseño estático.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: alanponce
*/

/* Variables Globales */
:root {
    /* Colores */
    --primary-blue: #1A2757;
    --primary-green: #82BC5A;
    --text-white: #FFFFFF;
    
    /* Tipografía */
    --font-main: 'Cairo', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-blue); /* Fondo azul oscuro de la captura */
    min-height: 100vh;
}

/* ------------------- HEADER ------------------- */
.main-header {
    padding: 20px;
    width: 100%;
}

.header-container {
    background-color: var(--primary-green);
    border-radius: 20px; /* Bordes redondeados tipo píldora */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px; /* Ajusta según el tamaño real de la imagen */
    height: auto;
    object-fit: contain;
}

.brand-text {
    color: var(--text-white);
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 400;
}

.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-button:hover {
    transform: scale(1.05);
    background-color: #111a3b;
}

/* ------------------- BOTÓN MENÚ MÓVIL ------------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:active {
    transform: scale(0.9);
}

.menu-close {
    display: none !important;
}

/* ------------------- MEDIA QUERIES (RESPONSIVE) ------------------- */

/* Tablet y Móvil (hasta 1024px) */
@media (max-width: 1024px) {
    .main-header {
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    html {
        scroll-padding-top: 75px;
    }

    body {
        padding-top: 70px;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 10px 20px;
        border-radius: 0;
        background-color: var(--primary-blue);
        position: relative;
        z-index: 1001;
    }

    .icon-button {
        background-color: var(--primary-green);
    }
    
    .menu-toggle {
        color: var(--text-white);
    }

    .brand-text {
        display: none; /* Ocultar texto largo para mantener diseño limpio */
    }

    .menu-toggle {
        display: block;
        order: 2; /* A la derecha de los iconos de contacto */
    }
    
    .header-actions {
        order: 1;
        margin-left: auto;
        margin-right: 20px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-blue);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }

    .header-nav.active {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 25px;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.3rem;
        border: none;
    }
    
    .menu-close {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        background: none;
        border: none;
        color: var(--text-white);
        font-size: 2.2rem;
        cursor: pointer;
        z-index: 2000;
    }
}

/* ------------------- HERO SECTION ------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-image: url('assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 20px 20px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente para mejorar la lectura sobre la imagen */
    background: linear-gradient(to right, rgba(10, 15, 36, 0.80) 0%, rgba(10, 15, 36, 0.5) 45%, rgba(10, 15, 36, 0.05) 100%);
    z-index: -1;
}

.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-left {
    flex: 1;
    max-width: 800px;
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 35px;
    line-height: 1.4;
}

.btn-primary {
    display: block;
    width: max-content;
    margin: 0 auto 50px auto;
    background-color: var(--primary-green);
    color: var(--text-white);
    padding: 15px 70px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #6da349;
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    justify-content: space-between;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.feature-item img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 400;
}

.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 40px;
}

.bottom-logo-small {
    width: 90px;
    height: auto;
}

.bottom-logo-large {
    width: 180px;
    height: auto;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right picture {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-main-img {
    max-width: 60%;
    height: auto;
    /* En el diseño original la imagen de la derecha es rectangular/cuadrada */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ------------------- MEDIA QUERIES HERO ------------------- */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left {
        order: 2;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-overlay {
        background: rgba(10, 15, 36, 0.85); /* Más oscuro en tablet/movil para contrastar */
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-right {
        order: 1;
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 15px;
        min-height: auto;
        background-image: url('assets/images/herobackgroundmovil.jpg');
    }

    .specialties-title,
    .vision-title,
    .services-main-title,
    .testimonials-title,
    .cases-title,
    .cirujano-hero-title,
    .multi-title,
    .formacion-title {
        font-size: 1.1rem !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title {
        font-size: 1.7rem !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .about-main-title {
        font-size: 1.6rem !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-features {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        margin: 0 auto 40px auto;
        justify-content: center;
        align-items: flex-start;
    }

    .feature-item {
        max-width: 32%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }
    
    .feature-item img {
        margin-bottom: 0;
        height: auto;
        width: 40px;
    }
    
    .feature-item p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .hero-logos {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }

    .hero-main-img {
        max-width: 90%;
        margin-top: 20px;
    }
}

/* ------------------- ABOUT SECTION ------------------- */
.about-section {
    background-color: #F5F5F5;
    padding: 80px 20px;
    font-family: 'Roboto', sans-serif;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-logo {
    width: 15%;
}

.about-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 10px;
}

.about-title-wrapper {
    width: 85%;
    text-align: center;
}

.about-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
}

.text-blue {
    color: var(--primary-color);
}

.text-green {
    color: var(--primary-green);
}

.text-dark-green {
    color: #02733E;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text {
    flex: 1;
    color: #333;
}

.about-paragraph {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #4a4a4a;
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #000;
}

.about-list li span {
    font-weight: bold;
    margin-right: 5px;
}

/* Media Queries About Section */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }

    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-paragraph, .about-subtitle {
        text-align: center;
        width: 100%;
    }

    .about-list {
        width: fit-content;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 40px 15px;
    }
    
    .about-container {
        gap: 20px;
    }
    
    .about-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-logo {
        display: none;
    }
    
    .about-title-wrapper {
        width: 100%;
        text-align: center;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
}

/* ------------------- SPECIALTIES SECTION ------------------- */
.specialties-section {
    background-image: url('assets/images/MisionBackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0A192F;
    padding: 100px 20px;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    position: relative;
}

.specialties-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.4); /* Capa oscura sutil por si el fondo es claro */
}

.specialties-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.specialties-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.specialties-subtitle {
    color: #02733E;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.specialties-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
}

.specialties-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #D1D5DB;
    max-width: 800px;
    margin: 0 auto;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 50px;
    column-gap: 40px;
    text-align: center;
}

.specialty-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.specialty-number {
    color: var(--primary-green);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.specialty-name {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.specialty-text {
    font-size: 1rem;
    color: #D1D5DB;
    line-height: 1.5;
    max-width: 300px;
}

.specialty-logo {
    justify-content: flex-end;
}

.specialty-logo img {
    max-width: 110px;
    margin-bottom: 20px;
}

.specialty-logo-text {
    font-size: 0.85rem;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Media Queries Specialties */
@media (max-width: 1024px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .specialties-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
    
    .specialties-title {
        font-size: 1.5rem;
    }
    
    .specialties-section {
        padding: 60px 15px;
    }
}

/* ------------------- VISION SECTION ------------------- */
.vision-section {
    background-color: #BCBEBD;
    padding: 80px 20px;
    font-family: 'Roboto', sans-serif;
}

.vision-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vision-box {
    background-color: rgba(130, 188, 90, 0.8); /* #82BC5A al 80% */
    border-radius: 15px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.vision-text {
    flex: 1;
}

.vision-subtitle {
    color: #02733E;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.vision-title {
    color: #FFFFFF;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
}

.vision-doctor {
    color: #02733E;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.vision-doctor-sub {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 25px;
}

.vision-desc {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-vision {
    display: inline-block;
    background-color: #1A2757;
    color: #FFFFFF;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-vision:hover {
    background-color: #0F172A;
}

.vision-image {
    flex: 1;
}

.vision-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Media Queries Vision Section */
@media (max-width: 1024px) {
    .vision-box {
        flex-direction: column;
        padding: 40px;
        gap: 40px;
    }
    
    .vision-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .vision-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .vision-section {
        padding: 50px 15px;
    }
    
    .vision-box {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
    }
    
    .vision-image {
        order: 1;
        margin-bottom: 15px;
    }
    
    .vision-text {
        order: 2;
    }
    
    .vision-title {
        font-size: 2rem;
    }
    
    .vision-doctor {
        font-size: 1.5rem;
    }
}

/* ------------------- SERVICES SECTION ------------------- */
.services-section {
    background-color: #FFFFFF;
    padding: 80px 20px;
    font-family: 'Roboto', sans-serif;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F5F5F5;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.services-main-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #1A2757;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
}

.service-img-wrapper img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.service-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-green);
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.service-icon i {
    transform: rotate(-45deg);
}

.service-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-title {
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-desc {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Media Queries Services Section */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 30px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-container {
        padding: 25px 15px;
    }
    
    .services-main-title {
        font-size: 1.8rem;
    }
}

/* ------------------- TESTIMONIALS SECTION ------------------- */
.testimonials-section {
    background-color: #BCBEBD;
    padding: 80px 20px;
    font-family: 'Roboto', sans-serif;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('assets/images/Testimoniosbackground.webp');
    background-size: cover;
    background-position: center;
    background-color: #1A2757;
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonials-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 39, 87, 0.3); /* Capa oscura más suave */
    z-index: 0;
}

.testimonials-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.testimonials-title {
    color: #FFFFFF;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.btn-testimonials {
    display: inline-block;
    background-color: #FFFFFF;
    color: #1A2757;
    font-weight: 900;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-testimonials:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.testimonials-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #8CBB6D;
    border-radius: 10px;
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.testimonial-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.testimonial-patient {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-quote {
    font-size: 1rem;
    font-style: normal;
    margin: 0;
}

.testimonial-rating {
    background-color: #FFFFFF;
    color: #000000;
    padding: 6px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-rating img {
    width: 14px;
    height: 14px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.testimonials-mobile-action {
    display: none;
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Media Queries Testimonials */
@media (max-width: 1024px) {
    .testimonials-header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 30px 15px;
    }

    .desktop-btn {
        display: none;
    }
    
    .testimonials-mobile-action {
        display: block;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .testimonials-container {
        padding: 25px 15px;
    }
    
    .testimonials-title {
        font-size: 2.2rem;
    }
}

/* ------------------- CLINICAL CASES SECTION ------------------- */
.cases-section {
    background-color: #F9F9F9;
    padding: 80px 20px;
    font-family: 'Roboto', sans-serif;
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cases-header {
    text-align: center;
    margin-bottom: 60px;
}

.cases-subtitle {
    color: #02733E;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cases-title {
    color: #1A2757;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.cases-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.case-card {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.case-card-title {
    color: #1A2757;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.3;
}

.case-title-first {
    margin-bottom: 30px; /* Extra margin to align with cards that have subtitles */
}

.case-card-sub {
    display: block;
    color: #02733E;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 25px;
}

.case-card-content p {
    color: #202B00;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.case-card-content strong {
    color: #202B00;
    font-weight: 900;
}

.case-card-img {
    width: 100%;
    height: auto;
    margin-top: 15px;
    display: block;
}

.case-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 250px;
    color: #02733E;
    font-size: 1.8rem;
}

/* Media Queries Clinical Cases */
@media (max-width: 1024px) {
    .cases-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .case-arrow {
        transform: rotate(90deg);
        padding-top: 0;
        margin: 10px 0;
    }
    
    .case-title-first {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .cases-title {
        font-size: 2.2rem;
    }
    
    .cases-section {
        padding: 60px 15px;
    }
}

/* ------------------- FOOTER SECTION ------------------- */
.site-footer {
    background-color: #1A2757;
    color: #E5E7EB;
    font-family: 'Roboto', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 60px;
}

.footer-brand-text {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.footer-doctor-name {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.footer-cedulas {
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer-cedulas p {
    margin: 0;
}

.btn-footer {
    display: inline-block;
    background-color: var(--primary-green);
    color: #FFFFFF;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.btn-footer:hover {
    opacity: 0.9;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links li {
    margin-bottom: 15px;
}

.footer-col-links a {
    color: #E5E7EB;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col-links a:hover {
    color: var(--primary-green);
}

.footer-col-contact p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.footer-col-contact .text-green {
    color: var(--primary-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-col-contact .text-green:hover {
    opacity: 0.8;
}

.footer-bottom {
    background-color: var(--primary-green);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #FFFFFF;
    margin: 0;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Media Queries Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   CIRUJANO PAGE STYLES
   ========================================================================== */

/* ------------------- CIRUJANO HERO ------------------- */
.cirujano-hero {
    position: relative;
    background-image: url('assets/images/CirujanoHero.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cirujano-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(26, 39, 87, 0.4); /* Capa azul oscura semi-transparente para lectura */
    z-index: 1;
}

.cirujano-hero-content {
    position: relative;
    z-index: 2;
}

.cirujano-hero-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Sombra para resaltar sobre el fondo complejo */
}

/* Media Queries Cirujano Hero */
@media (max-width: 768px) {
    .cirujano-hero {
        padding: 80px 20px;
    }
    
    .cirujano-hero-title {
        font-size: 2.2rem;
    }
}

/* ------------------- CIRUJANO BIO ------------------- */
.cirujano-bio-section {
    background-color: var(--primary-color);
    padding: 100px 20px;
    font-family: 'Roboto', sans-serif;
}

.cirujano-bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.cirujano-bio-image {
    flex: 1;
}

.cirujano-bio-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
}

.cirujano-bio-text {
    flex: 1;
    color: #FFFFFF;
}

.cirujano-bio-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.cirujano-cedulas {
    margin-top: 40px;
}

.cirujano-cedulas p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cirujano-cedulas strong {
    font-weight: 900;
}

.cirujano-cedulas .text-green {
    font-weight: 900;
}

/* Media Queries Cirujano Bio */
@media (max-width: 1024px) {
    .cirujano-bio-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .cirujano-bio-image, .cirujano-bio-text {
        width: 100%;
    }
    
    .cirujano-bio-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cirujano-bio-section {
        padding: 60px 20px;
    }
    
    .cirujano-bio-text p {
        font-size: 1rem;
    }
}

/* ------------------- CIRUJANO MULTI SECTION ------------------- */
.cirujano-multi-section {
    background-color: #F5F5F5;
    padding: 100px 20px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.cirujano-multi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.multi-subtitle {
    color: #02733E;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.multi-title {
    color: #1A2757;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.multi-text p {
    color: #202B00;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
}

/* Media Queries Cirujano Multi Section */
@media (max-width: 768px) {
    .cirujano-multi-section {
        padding: 60px 20px;
    }
    
    .multi-title {
        font-size: 1.8rem;
    }
    
    .multi-text p {
        font-size: 1rem;
        text-align: center;
    }
}

/* ------------------- CIRUJANO FORMACION BANNER ------------------- */
.cirujano-formacion-banner {
    position: relative;
    background-image: url('assets/images/FormacionBackground.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.formacion-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(26, 39, 87, 0.65); /* Capa azul para contrastar el texto blanco */
    z-index: 1;
}

.formacion-content {
    position: relative;
    z-index: 2;
}

.formacion-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Media Queries Formacion Banner */
@media (max-width: 768px) {
    .cirujano-formacion-banner {
        padding: 80px 20px;
    }
    
    .formacion-title {
        font-size: 2.2rem;
    }
}

/* ------------------- CIRUJANO ACCORDION SECTION ------------------- */
.cirujano-accordion-section {
    background-color: #F5F5F5;
    padding: 60px 20px 100px 20px;
    font-family: 'Roboto', sans-serif;
}

.accordion-container {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.accordion-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: #1A2757;
    color: #FFFFFF;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.accordion-title {
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-right: 20px;
    text-transform: uppercase;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

/* Active State */
.accordion-item.active .accordion-header {
    background-color: #02733E;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: transparent;
}

.accordion-content {
    padding: 20px 10px;
    color: #333333;
    font-size: 0.95rem;
}

.accordion-content p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #555555;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .accordion-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------- CIRUJANO CONTACT SECTION ------------------- */
.cirujano-contact-section {
    background-color: #82BC5A;
    padding: 80px 20px;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.contact-header p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    width: 30%;
    padding-top: 20px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 40px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.info-block p, .info-block a {
    font-size: 1.1rem;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 300;
}

.contact-form-container {
    width: 65%;
    background-color: #1A2757;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cirujano-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.name-inputs {
    display: flex;
    gap: 15px;
}

.name-inputs input {
    flex: 1;
}

.cirujano-form input,
.cirujano-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: none;
    background-color: #F4F4F5;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
}

.cirujano-form input::placeholder,
.cirujano-form textarea::placeholder {
    color: #6B7280;
    font-size: 0.85rem;
}

.cirujano-form textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #00A770;
    color: #FFFFFF;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #008f5f;
}

/* Media Queries for Contact */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .contact-info h3 {
        margin-bottom: 20px;
    }
    
    .contact-form-container {
        width: 100%;
        padding: 30px 20px;
    }
    
    .name-inputs {
        flex-direction: column;
    }
    
    .contact-header h2 {
        font-size: 1.7rem !important;
    }
}

/* =========================================
   Botón Volver Arriba
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ------------------- AÑADIDOS PARA WORDPRESS ------------------- */
/* Páginas genéricas (contenido del editor) */
.ap-page-content { background:#FFFFFF; color:#1A2757; padding:60px 20px; }
.ap-page-content .ap-page-inner { max-width:1100px; margin:0 auto; line-height:1.7; }
.ap-page-content h1 { font-size:2.2rem; margin-bottom:24px; color:#1A2757; }
.ap-page-content h2, .ap-page-content h3 { margin:28px 0 12px; color:#1A2757; }
.ap-page-content p, .ap-page-content ul, .ap-page-content ol { margin-bottom:16px; }
.ap-page-content ul, .ap-page-content ol { padding-left:24px; }
.ap-page-content a { color:#02733E; }
.ap-page-content img { max-width:100%; height:auto; }
.ap-page-content .btn-primary { display:inline-block; margin-top:8px; }
/* Mensajes del formulario de cita */
.ap-form-notice { padding:14px 18px; border-radius:10px; margin-bottom:20px; font-weight:600; }
.ap-form-notice.ok { background:#E6F5EA; color:#02733E; }
.ap-form-notice.error { background:#FDE8E8; color:#9B1C1C; }
.ap-hp { position:absolute; left:-9999px; opacity:0; height:0; width:0; }
/* Barra de administración de WP no debe tapar el menú móvil */
.admin-bar .header-nav.active { top:32px; }
@media (max-width:782px){ .admin-bar .header-nav.active { top:46px; } }
/* Rótulo "¿Cómo puedo ayudarte?" del plugin Social Chat: píldora blanca con texto navy para que contraste en cualquier fondo */
.qlwapp .qlwapp__button--bubble .qlwapp__text {
    background: #FFFFFF !important;
    color: #1A2757 !important;
    padding: 0 16px !important;
    height: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 14px !important;
    top: 50%; transform: translateY(-50%);
}
