/* IMPORTAR FUENTE AXIFORMA LOCAL */
@font-face {
    font-family: 'Axiforma';
    src: url('assets/font/Axiforma-Regular.woff2') format('woff2'),
         url('assets/font/Axiforma-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('assets/font/Axiforma-Medium.woff2') format('woff2'),
         url('assets/font/Axiforma-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('assets/font/Axiforma-SemiBold.woff2') format('woff2'),
         url('assets/font/Axiforma-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('assets/font/Axiforma-Bold.woff2') format('woff2'),
         url('assets/font/Axiforma-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('assets/font/Axiforma-ExtraBold.woff2') format('woff2'),
         url('assets/font/Axiforma-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES DE COLOR */
:root {
    --primary-dark: #003366;
    --primary-teal: #008B9D;
    --light-teal: #E8F4F8;
    --white: #FFFFFF;
    --text-dark: #00355B;
    --text-light: #666666;
    --border-color: #CCCCCC;
    --cta-text: #00355B;
    --btn-bg: #80EDF4;
    --btn-text: #00668F;
}

/* PANTALLA DE CARGA */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@media (max-width: 767px) {
    .loading-logo {
        width: 120px;
        height: 120px;
    }
}

/* RESET Y ESTILOS GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Axiforma', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Ocultar saltos de línea móviles en desktop */
.mobile-br {
    display: none;
}

@media (max-width: 767px) {
    .mobile-br {
        display: inline;
    }
}

/* ANIMACIONES FADE IN */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero aparece inmediatamente sin animación */
.hero.fade-in-section {
    opacity: 1;
    transform: translateY(0);
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-teal);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 139, 157, 0.3);
}

.back-to-top:hover {
    background-color: #006B7D;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 139, 157, 0.4);
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* BOTONES */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 35px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #006B7D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 139, 157, 0.3);
}

/* HEADER */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 0;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    width: 100%;
    padding: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-menu li {
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem; /* Ajustado ligeramente para dar espacio al nuevo botón de contacto */
    display: block;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent; /* Mantiene el espacio reservado para que el menú no "salte" */
    position: relative;
}

.nav-link:hover {
    color: var(--primary-teal);
}

.nav-link.active {
    color: var(--primary-teal);
    border-bottom: 3px solid var(--primary-teal); /* El subrayado que viste en tu captura */
    font-weight: 500; /* Opcional: le da un poco más de peso visual a la sección activa */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-teal);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

@media (max-width: 767px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex !important;
        position: static;
        background-color: transparent;
        padding: 0;
        width: auto;
        text-align: left;
        flex-direction: row;
        gap: 0;
        box-shadow: none;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-link {
        padding: 0.5rem 1rem; /* Reducido de 1.25rem a 1rem para dar aire al nuevo botón */
    }

    .search-btn {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    padding: 0;
    margin: 1.5rem 9rem;
    border-radius: 25px;
    width: calc(100% - 18rem);
}

.hero-background {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    margin-bottom: 0;
}

.hero-bg-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
}

.hero-content {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 25px;
}

.hero-text {
    color: var(--white);
    max-width: 550px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    line-height: 1.4;
}

.hero-credentials {
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.6;
    width: fit-content;
}

.hero-credentials p {
    margin: 0;
}

/* SECCIÓN CTA (Debajo del hero) */
.hero-cta {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 9rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: calc(100% - 18rem);
}

.hero-cta p {
    color: var(--cta-text);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 550px;
    margin: 0;
    flex: 1;
    text-align: left;
}

.hero-cta .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-cta .btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

.hero-cta .btn-primary:hover {
    background-color: #6DDDE8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 237, 244, 0.3);
}

/* RESPONSIVE - MOBILE */
@media (max-width: 767px) {
    .hero {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .hero-content {
        padding: 1.5rem 1rem;
        justify-content: flex-start;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 1.3rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }

    .hero-credentials {
        font-size: 0.6rem;
        line-height: 1.4;
        width: 100%;
        text-align: center;
    }

    .hero-credentials p {
        margin: 0;
    }

    .hero-cta {
        margin: 3rem 1rem 2rem 1rem;
        padding: 0;
        width: calc(100% - 2rem);
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-cta p {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .hero {
        margin: 1.5rem 9rem;
        width: calc(100% - 18rem);
    }

    .hero-content {
        padding: 4rem 3rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

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

    .hero-credentials {
        font-size: 0.9rem;
    }

    .hero-cta {
        margin: 2rem auto;
        padding: 0 9rem;
        width: calc(100% - 18rem);
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }
}

/* SECCIÓN SOBRE MÍ */
.about-section {
    padding: 4rem 9rem;
    background-color: var(--white);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-bg {
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    overflow: hidden;
}

.doctor-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-title {
    font-size: 2rem;
    line-height: 1.3;
    color: #00AEC1;
    font-weight: 700;
    margin: 0;
}

.about-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #00355B;
    margin: 0;
}

.about-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #00355B;
    margin: 0;
}

@media (max-width: 767px) {
    .about-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-content {
        text-align: center;
    }

    .about-image-bg {
        max-width: 280px;
    }
}

/* SECCIÓN POR QUÉ ATENDERTE CONMIGO */
.why-section {
    padding: 4rem 9rem;
    background-color: var(--white);
}

.why-container {
    max-width: 1400px;
    margin: 0 auto;
}

.why-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid #00AEC1;
    border-radius: 30px;
    color: #00AEC1;
    font-size: 1.8rem;
    font-weight: 800;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text {
    display: flex;
    align-items: center;
}

.why-text p {
    font-size: 28px;
    line-height: 1.5;
    color: #00AEC1;
    font-weight: 400;
    margin: 0;
}

.why-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-list li i {
    color: #00AEC1;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.why-list li span {
    color: #00355B;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 767px) {
    .why-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .why-header {
        margin-bottom: 2rem;
    }

    .why-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .why-text {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .why-text p {
        font-size: 1.3rem;
    }

    .why-list {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .why-list ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .why-list li {
        justify-content: center;
        text-align: left;
        max-width: 400px;
    }

    .why-list ul {
        gap: 1.2rem;
    }
}

/* SECCIÓN CIRUGÍA ESTÉTICA */
.procedures-section {
    padding: 4rem 9rem;
    background-color: var(--white);
}

.procedures-container {
    max-width: 1400px;
    margin: 0 auto;
}

.procedures-badge {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border: 2px solid #80EDF4;
    border-radius: 35px;
    color: #80EDF4;
    font-size: 1.8rem;
    font-weight: 700;
    background-color: transparent;
    margin-bottom: 1.5rem;
}

.procedures-header {
    background-image: url('Rectangle112.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 35px;
    padding: 2.5rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.procedures-header p {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.procedures-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.procedure-card {
    border: none; /* Esto elimina el contorno azul */
    border-radius: 35px;
    padding: 0; 
    background-color: transparent; /* Permite que la imagen sea la protagonista */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; 
    margin-top: 50px; 
    overflow: visible; 
}
/* Contenedor de la nueva imagen */
.procedure-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.procedure-main-img {
    width: 100%;
    height: auto;
    border-radius: 35px; 
    display: block;
    object-fit: cover;
}

.procedure-icon {
    display: none;
}



.procedure-title {
    background-color: #00AEC1;
    color: var(--white);
    padding: 0.6rem 2.5rem;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    position: absolute; /* Lo hacemos flotar */
    top: -20px; /* Lo posicionamos a la mitad del borde superior */
    left: 50%;
    transform: translateX(-50%); /* Lo centramos perfectamente */
    z-index: 10;
    white-space: nowrap;
}

.procedure-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.procedure-list li {
    color: #00355B;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    line-height: 1.3;
    font-weight: 400;
}

.procedures-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

@media (max-width: 767px) {
    /* 1. Reducimos el espacio excesivo entre secciones */
    .procedures-section {
        padding: 2rem 1rem; /* Menos espacio general */
    }

    .procedures-header {
        margin-bottom: 1rem; /* Menos espacio entre el texto superior y las fotos */
    }

    /* 2. Ajustamos la tarjeta para que la imagen sea más grande y el título flote */
    .procedure-card {
        margin-top: 30px !important; /* Espacio justo para que quepa el título flotante */
        padding: 0 !important;
        width: 100%;
        max-width: 450px; /* Hacemos la imagen más grande en móviles */
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Aseguramos que el título flote sobre la imagen en móvil */
    .procedure-title {
        position: absolute !important;
        top: -15px !important; /* Lo posicionamos sobre el borde superior */
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 1rem !important;
        padding: 0.5rem 1.5rem !important;
        white-space: nowrap;
        z-index: 10;
    }

    /* 4. Quitamos espacios innecesarios del icono viejo que ya no existe */
    .procedure-icon {
        display: none !important;
    }

    /* 5. Espaciado entre la primera y segunda imagen */
    .procedures-cards {
        gap: 4rem; /* Controla la separación vertical entre las dos tarjetas */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .procedure-main-img {
        width: 100%;
        height: auto;
        border-radius: 25px; /* Bordes redondeados consistentes */
    }
}

/* SECCIÓN CTA VALORACIÓN */
.cta-section {
    padding: 3rem 9rem 1rem 9rem;
    background-color: var(--white);
    text-align: center;
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cta-text {
    color: #00355B;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.btn-cta {
    background-color: #80EDF4;
    color: #00668F;
    padding: 0.75rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-cta:hover {
    background-color: #6DDDE8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 237, 244, 0.4);
}

/* SECCIÓN RESULTADOS */
.results-section {
    padding: 2rem 9rem 4rem 9rem;
    background-color: var(--white);
}

.results-container {
    max-width: 1400px;
    margin: 0 auto;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.results-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-title {
    color: #00AEC1;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

.results-description {
    color: #00355B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.results-note {
    color: #00355B;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

.results-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #00AEC1;
}

.dot:hover {
    background-color: #00AEC1;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .cta-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .cta-text {
        font-size: 0.9rem;
    }

    .results-section {
        padding: 2rem 1.5rem;
    }

    .results-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .results-text {
        text-align: center;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .results-description {
        font-size: 0.9rem;
    }

    .results-note {
        text-align: center;
    }

    .carousel-container {
        height: 300px;
    }
}

/* SECCIÓN PRIMERA CONSULTA */
.consultation-section {
    padding: 1rem 9rem 4rem 9rem;
    background-color: var(--white);
}

.consultation-container {
    max-width: 1400px;
    margin: 0 auto;
}

.consultation-header {
    text-align: center;
    margin-bottom: 3rem;
}

.consultation-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid #00AEC1;
    border-radius: 35px;
    color: #00AEC1;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.consultation-subtitle {
    color: #00355B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.consultation-banner {
    background-image: url('banner_woman.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 35px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
}

.banner-mobile-img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 35px;
}

.banner-content {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1.2fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 300px;
}

.banner-item {
    color: var(--white);
}

.banner-item-1 {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    padding-left: 8rem;
}

.banner-item-2 {
    grid-column: 3;
    grid-row: 1;
    text-align: center;
    padding-right: 8rem;
}

.banner-item-3 {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    padding-left: 8rem;
}

.banner-item-4 {
    grid-column: 3;
    grid-row: 2;
    text-align: center;
    padding-right: 8rem;
}

.banner-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #80EDF4;
}

.banner-item p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.consultation-footer {
    color: #00355B;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    font-weight: 800;
}

@media (max-width: 767px) {
    .consultation-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .consultation-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .consultation-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
    }

    .consultation-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }

    .consultation-banner {
        padding: 0;
        background-image: none;
        margin-bottom: 2rem;
    }

    .banner-mobile-img {
        display: block;
    }

    .banner-content {
        display: none;
    }

    .consultation-footer {
        text-align: center;
    }
}

/* SECCIÓN PREGUNTAS FRECUENTES */
.faq-section {
    padding: 4rem 9rem;
    background-color: var(--white);
}

.faq-container {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 0;
}

.faq-badge {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border: 2px solid #00AEC1;
    border-radius: 35px;
    color: #00AEC1;
    font-size: 1.8rem;
    font-weight: 700;
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.faq-box {
    border: 2px solid #00AEC1;
    border-radius: 35px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: -1.5rem auto 0 auto;
    position: relative;
}

.faq-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.faq-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon img {
    width: 100%;
    height: auto;
}

.faq-title {
    color: #00AEC1;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.faq-right {
    display: flex;
    align-items: center;
}

.faq-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border-bottom: 1px solid #E0E0E0;
}

.accordion-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-question:hover {
    opacity: 0.8;
}

.accordion-question i {
    color: #80EDF4;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accordion-question span {
    color: #00355B;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 2.5rem;
}

.accordion-answer p {
    color: #00355B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.accordion-item.active .accordion-answer {
    max-height: 500px;
    padding: 0 0 1rem 2.5rem;
}

@media (max-width: 767px) {
    .faq-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .faq-header {
        text-align: center;
    }

    .faq-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
    }

    .faq-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
        max-width: 100%;
    }

    .faq-left {
        text-align: center;
    }

    .faq-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .faq-icon img {
        width: 60px;
        height: 60px;
    }

    .accordion-question {
        text-align: left;
    }

    .accordion-answer {
        text-align: left;
    }
}

/* SECCIÓN CTA FINAL */
.final-cta-section {
    padding: 1rem 9rem 4rem 9rem;
    background-color: var(--white);
    text-align: center;
}

.final-cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.final-cta-badge {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background-color: #80EDF4;
    color: #00668F;
    border-radius: 35px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-cta-badge:hover {
    background-color: #6DDDE8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 237, 244, 0.4);
}

.final-cta-text {
    color: #00355B;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 800;
}

.final-cta-contact {
    color: #00355B;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* FOOTER */
.footer {
    background-color: #006B7D;
    padding: 2.5rem 9rem;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-text {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

@media (max-width: 767px) {
    .final-cta-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .final-cta-container {
        text-align: center;
    }

    .final-cta-badge {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }

    .final-cta-text {
        font-size: 0.9rem;
        text-align: center;
    }

    .final-cta-contact {
        font-size: 0.9rem;
        text-align: center;
    }

    .footer {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .footer-title {
        font-size: 0.85rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}
/* SECCIÓN DE CONTACTO */
.contact-section {
    padding: 2rem 9rem; /* Mismo padding lateral que el resto de las secciones */
    background-color: var(--white);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-box {
    /* Copiamos los valores exactos de .faq-box para que midan lo mismo */
    max-width: 1000px; 
    margin: 0 auto; 
    background-color: var(--light-teal);
    padding: 3rem;
    border-radius: 35px;
    text-align: center;
    box-sizing: border-box; /* Asegura que el padding no ensanche la caja */
}

.contact-title {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-subtitle {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 850px; /* Un poco más estrecho por dentro para mejor lectura */
    margin: 0 auto;
}

.form-group {
    width: 100%;
}

/* Campos que ocupan todo el ancho (Mensaje y Botón) */
.contact-form .form-group:nth-child(5),
.contact-form .btn-submit {
    grid-column: span 2;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-family: 'Axiforma', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-teal);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
}

/* RESPONSIVE CONTACTO */
@media (max-width: 767px) {
    .contact-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-group:nth-child(5),
    .contact-form .btn-submit {
        grid-column: span 1;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}
/* Contenedor del botón en Sobre Mí */
.about-cta {
    margin-top: 2rem;
}

/* Estilo para botón secundario / de certificación */
.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline i {
    font-size: 1.2rem;
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .about-cta {
        text-align: center; /* Centrado en móviles para mejor estética */
    }
}
/* Estilo para la imagen dentro del botón */
.btn-icon-img {
    height: 24px; /* Tamaño discreto pero visible */
    width: auto;
    margin-right: 10px; /* Espacio entre el logo y el texto */
    vertical-align: middle;
}

/* Ajuste al botón para alinear todo verticalmente */
.btn-outline {
    display: inline-flex; /* Esto alinea logo y texto perfectamente al centro */
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    /* ... tus otros estilos móviles ... */

    /* AJUSTE PARA EL TEXTO DEL RECUADRO AZUL */
    .procedures-badge {
        font-size: 1.3rem; /* Un poco más grande para leerse bien */
        padding: 0.8rem 1rem; /* Reducimos el padding lateral para dar más espacio al texto */
        width: 90%; /* Ocupará casi todo el ancho disponible */
        max-width: 350px; /* Evita que se estire demasiado en pantallas medianas */
        display: inline-block;
        line-height: 1.3; /* Mejor espaciado entre líneas */
        white-space: normal; /* Permite que el texto fluya naturalmente */
    }
    
    /* IMPORTANTE: Esto elimina el salto de línea forzado que tenías antes */
    .mobile-br {
        display: none !important;
    }
}
/* Estilos generales para el icono */
.btn-icon-img {
    height: 24px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.2s ease; /* Transición suave */
}

/* 1. Estado Inicial: Ocultamos el logo blanco */
.logo-hover {
    display: none;
}

/* 2. Estado Hover: Intercambio de logotipos */

/* Al pasar el mouse sobre el botón, ocultamos el normal (azul) */
.btn-outline:hover .logo-normal {
    display: none;
}

/* Y mostramos el blanco */
.btn-outline:hover .logo-hover {
    display: inline-block;
}

/* Asegura que la imagen llene el slide correctamente */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto corta los bordes sobrantes para llenar el espacio sin deformar la foto */
    object-position: center; /* Centra la imagen */
    display: block;
    border-radius: 20px; /* Mantiene los bordes redondeados del contenedor */
}

@media (max-width: 767px) {
    /* ... tus otros códigos ... */

    .carousel-container {
        width: 100%;
        /* Quitamos la altura fija en pixeles */
        height: auto !important; 
        /* Esto crea un rectángulo perfecto (4 de ancho por 3 de alto) */
        aspect-ratio: 4 / 3; 
        min-height: 250px; /* Seguridad para pantallas muy pequeñas */
    }

    /* Aseguramos que la imagen se adapte a este nuevo rectángulo */
    .slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Cubre el área sin deformar */
        object-position: center top; /* Alinea la imagen un poco más arriba para no cortar frentes */
        border-radius: 20px;
    }
}
/* MENSAJE DEL FORMULARIO */
.form-message {
    grid-column: span 2;
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    display: none; /* Oculto por defecto */
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.form-message.success {
    display: block;
    background-color: #E8F4F8; /* Un tono que combina con tu web */
    color: #006B7D;
    border: 1px solid #80EDF4;
}

.form-message.error {
    display: block;
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

@media (max-width: 767px) {
    .form-message {
        grid-column: span 1;
    }
}