@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.body{
    font-family: 'Roboto', sans-serif;
    color: #706f6f; /* Color base para toda la página */
}

.html{
    scroll-behavior: smooth;
}

:root {
    --padding-container: 100px 0;
    --color-title: #001a499e;
}


.goals,
.types,
#us,
#questions {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 108px 20px 20px;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--padding-container);
}



/* Button for all */

.buttons {
    display: inline-block;
    background-color: #fbb878;
    justify-self: center;
    color: #000000;
    text-decoration: none;
    padding: 13px 25px;
    border-radius: 32px;
}

/* Nav */

.nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0 30px;
    position:fixed;
    top: 0;
    left: 0;
    right: 0;
    /* background: rgba(255,255,255,0.15); */
    /* backdrop-filter: blur(12px); */
    /* border-bottom: 1px solid rgba(255,255,255,0.15); */
    z-index: 1000;
    /* box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07); */
    transition: background 0.3s;
}


/* Contenedor del logo */

.nav_logo {
    width: 160px;
    /* margin-top: 30px; */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    z-index: 1200;
}

/* Imagen del logo */
.nav_logo img {
    width: 160px;
    height: auto;
}

/* Efecto hover */
.nav_logo img:hover {
    transform: scale(1.1);
    /* Efecto de zoom al pasar el mouse */
}


.nav_link {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95); /* Fondo negro como la imagen */
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 120px 30px 30px 30px;
    gap: 2em; /* Más espacio entre elementos */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    /* transition: transform 0.2s cubic-bezier(.77, 0, .18, 1), opacity 0.3s; */
    z-index: 999;
}

.nav_link.nav_link--show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav_items {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav_links {
    color: #ffffff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 300;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    width: 100%;
    transition: color 0.2s;
}

.nav_links:hover {
    color: #ccc;
}

.nav_burger {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200; /* Menor que el menú */
    padding: 0;
    display: block;
}

.burger_img {
    width: 32px;
    transform: rotate(180deg);
    transition: transform 0.3s;
}


.nav_burger.is-open .burger_img {
    transform: rotate(270deg) scale(1.1);
}

/* Seccion Header */

.headercont {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-height: 800px;
    position: relative;
    display: flex; /* Cambiar de grid a flex */
    flex-direction: column;
    color: #fff;
    background-image: linear-gradient(180deg, #00000033 0%, #00000042 100%);
}

.headercont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../Img/Dermatologa\ 1.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Controla la opacidad solo de la imagen */
    z-index: -1; /* Coloca la imagen detrás del contenido */
}

.header_section {
    flex: 1; /* Ocupar el resto del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header_title {
    margin-top: 3.5rem;
    font-size: 3.75rem;
    line-height: 1.216;
    letter-spacing: -0.43px;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.header_paragraph {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

.header_frase {
    font-size: 1.3rem;
    margin-bottom: 2em;
}

/* Goals */

.goals {
    text-align: center;
    background-color: #ff7b0025;
}

.subtitle {
    color: var(--color-title);
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 600;
    margin-top: 10px;
}

.goals_paragraph {
    line-height: 1.6; /* Buen espaciado de líneas */
    font-size: 18px; /* Reducir un poco */
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    max-width: 900px;
    margin: 0 auto 20px auto; /* Reducir margen inferior de 40px a 20px */
    hyphens: auto;
}

.goals__paragrah {
    line-height: 1.5;
    font-size: 15px;
    font-weight: 400;
}

.goals_main {
    padding-top: 130px;
    padding-bottom: 60px;
    display: grid;
    width: 100%;
    margin: 0 auto;
    gap: 5em;
    overflow: visible;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.goals_icons {
    /* background: rgba(219, 172, 15, 0.124); */
    /* box-sizing: border-box; */
    border-radius: 15px;
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
    align-content: start;
    padding: 30px 20px;
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.08); */
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}


.goals_icons:hover {
    transform: translateY(-50px);
    /* box-shadow: 0 15px 40px rgba(255, 103, 1, 0.171); */
}
.goals_icon {
    width: 60px; /* Aumentar el tamaño */
    background-color: #ff700a13;
    height: 60px;
    padding: 8px; /* Espacio entre el ícono y el borde */
    border:  1px solid #545454; /* Borde sólido */
    border-radius: 30%; /* Hacer circular */
    transition: all 0.3s ease;
    object-fit: contain; /* Mantener proporción del ícono */
}

/* Service */

.service {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px 20px 80px; /* Más padding superior y inferior balanceado */
    min-height: auto;
    overflow: visible; /* Cambiar de hidden a visible */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service_container {
    display: flex;
    flex-direction: column;
    gap: 4em; /* Más espacio entre elementos */
    align-items: center;
    max-width: 1200px; /* Reducir el ancho máximo */
    margin: 0 auto;
}

.service_texts {
    text-align: center;
    margin-bottom: 0; /* Eliminar margen extra */
}

.service_paragraph {
    line-height: 1.6; /* Buen espaciado de líneas */
    font-size: 20px; /* Reducir un poco */
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    max-width: 900px;
    margin: 0 auto 20px auto; /* Reducir margen inferior de 40px a 20px */
    hyphens: auto;
}

/* Carousel mejorado */

.image-carousel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Dar más espacio a la imagen */
    gap: 4em; /* Más espacio entre imagen y contenido */
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0; /* Eliminar margin-bottom */
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 450px; /* Aumentar altura */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9) rotateY(15deg);
    transition: all 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Contenido del carrusel reorganizado */

.carousel-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente */
    gap: 2em;
    height: 450px; /* Misma altura que la imagen */
    padding: 2em 0; /* Padding vertical */
}

.service-info {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
    pointer-events: none;
    flex-grow: 1; /* Ocupar el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-info.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.service-info h3 {
    font-size: 2rem; /* Título más grande */
    color: var(--color-title);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-info p {
    font-size: 1.2rem; /* Texto más legible */
    line-height: 1.7;
    color: #555;
}

/* Navegación reposicionada */
.carousel-navigation {
    display: flex;
    gap: 1.5em;
    margin-top: 0; /* Eliminar margin-top negativo */
    margin-bottom: 0;
    align-self: center; /* Centrar horizontalmente */
    z-index: 10;
    position: relative;
}

.carousel-btn {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #999; /* Color más sutil */
    font-size: 2.8rem;
    font-weight: 200; /* Muy delgadas */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
    padding: 0.8em 1em; /* Área clickeable más grande */
    opacity: 0.6;
}

.carousel-btn:hover {
    color: var(--color-title);
    transform: translateX(3px); /* Movimiento sutil hacia la dirección */
    opacity: 1;
}

.carousel-btn.prev:hover {
    transform: translateX(-3px); /* Movimiento hacia la izquierda */
}

.carousel-btn.next:hover {
    transform: translateX(3px); /* Movimiento hacia la derecha */
}

/* Types of cancer */

.types {
    text-align: center;
}

.types_table {
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    justify-content: space-evenly;
    align-items: center;
}

.types_element {
    background-color: #e5e5f7;
    text-align: center;
    border-radius: 10px;
    width: 330px;
    padding: 40px;
    --color-plan: #696871;
    --color-type: #1D293F;
    --bg-buttons: #fff;
    --color-buttons: #5454D4;
    --color-items: #696871;
}

.types_element--best {
    width: 370px;
    padding: 60px 40px;
    background-color: #ff7143;
    --color-plan: rgb(255 255 255 / 75%);
    --color-type: #fff;
    --bg-buttons: #9f3919;
    --color-buttons: #fff;
    --color-items: #fff;
}

.types_name {
    color: var(--color-plan);
    margin-bottom: 15px;
    font-weight: 300;
    font-size: 1.5em;
}

.types_img-1 {
    width: 75%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.types_img-2 {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.types_img-3 {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.types_items {
    margin-top: 35px;
    display: grid;
    gap: 1em;
    font-weight: 300;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--color-items)
}

.types_buttons {
    display: block;
    padding: 20px 0;
    border-radius: 10px;
    text-decoration: none;
    background-color: var(--bg-buttons);
    font-weight: 600;
    color: var(--color-buttons);
    box-shadow: 0 0 1px rgba(0, 0, 0, .5);
}

/* Us */

.us {
    background-color: #e5e5f7;
}

.us_container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}

.us_arrow {
    width: 90%;
    cursor: pointer;
}

.us_body {
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.us_body--show {
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.us_texts {
    font-size: 20px;
    max-width: 700px;
}

.us_course {
    background-color: rgb(162, 177, 223);
    color: #fff;
    display:inline-block;
    padding: 5px;
    border-radius: 5px;
}

.us_img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

/* Questions */

.questions {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Volver a centrar */
    align-items: center;
    padding: 80px 20px 60px; /* Reducir padding superior e inferior */
}

.questions_paragraph {
    line-height: 1.4; /* Reducir line-height */
    font-size: 16px; /* Reducir tamaño de fuente */
    font-weight: 400;
    text-align: center; /* Centrar en lugar de justify */
    max-width: 800px; /* Reducir ancho máximo */
    margin: 0 auto 30px auto; /* Reducir margen inferior */
}

.questions_container {
    display: grid;
    gap: 1em; /* Reducir gap de 2em a 1em */
    padding-top: 20px; /* Reducir padding superior */
    padding-bottom: 15px; /* Reducir padding inferior */
    max-width: 900px; /* Limitar ancho */
    width: 100%;
}

.questions_padding {
    padding: 0;
    transition: padding .3s;
    border: 1px solid #5454D4;
    border-radius: 6px;
}

.questions_padding--add {
    padding-bottom: 20px; /* Reducir de 30px a 20px */
}

.questions_answer {
    padding: 0 25px 0; /* Reducir padding horizontal */
}

.questions_title {
    display: flex;
    text-align: left;
    font-size: 18px; /* Reducir de 20px a 18px */
    padding: 20px 0 20px; /* Reducir padding vertical */
    cursor: pointer;
    color: var(--color-title);
    justify-content: space-between;
    line-height: 1.3; /* Añadir line-height compacto */
}

.questions_show {
    overflow: hidden;
    text-align: left;
    height: 0;
    transition: height .3s;
    font-size: 14px; /* Reducir tamaño del texto de respuesta */
    line-height: 1.4; /* Line-height compacto */
}

.questions_arrow {
    border-radius: 50%;
    background-color: var(--color-title);
    width: 20px; /* Reducir de 25px a 20px */
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition: transform .3s;
    flex-shrink: 0; /* Evitar que se encoja */
}

/* Sección final más compacta */
.questions_offer {
    margin-top: 30px; /* Reducir margen superior */
    text-align: center;
}

.questions_offer .subtitle {
    font-size: 2rem; /* Reducir tamaño del título final */
    margin-bottom: 15px; /* Reducir margen */
}

.questions_copy {
    width: 80%; /* Aumentar ancho para usar mejor el espacio */
    margin: 0 auto;
    margin-bottom: 20px; /* Reducir margen inferior */
    font-size: 15px; /* Reducir tamaño de fuente */
    line-height: 1.4; /* Line-height compacto */
}

.questions .buttons {
    padding: 10px 20px; /* Reducir padding del botón */
    font-size: 14px; /* Reducir tamaño de fuente del botón */
}

/* Footer  */

.footer {
    background-color: #1D293F;
}

.logo_footer{
    width: 100px;
    height: auto;
}

.footer_title {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer_title,
.footer_newsletter {
    color: #fff;
}

.footer_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
}

.nav--footer {
    padding-bottom: 20px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
}

.nav_link--footer {
    display: flex;
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
}

.footer_inputs {
    margin-top: 10px;
    display: flex;
    overflow: hidden;
}

.footer_input {
    background-color: #fff;
    height: 50px;
    display: block;
    padding-left: 10px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    margin-right: 10px;
}

.footer_submit {
    margin-left: auto;
    display: inline-block;
    height: 50px;
    padding: 0 20px;
    background-color: #2091f9;
    border: none;
    font-size: 1rem;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.footer_copy {
    --padding-container: 30px 0;
    text-align: center;
    color: #fff;
}

.footer_copyright {
    font-weight: 300;
}

.footer_icons {
    margin-bottom: 10px;
}

.footer_img {
    width: 30px;
}

/* Media queries */

@media (max-width:990px) {
    .goals_icons:last-of-type {
        grid-column: 1/-1;
    }
}

/* ===== TABLET GRANDE (1024px y menos) ===== */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 60px 0;
    }
    
    /* Header ocupa toda la pantalla */
    .headercont {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }
    
    .header_title {
        font-size: 3.2rem;
    }
    
    .header_paragraph {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 2.8rem;
    }
}

/* ===== TABLET (768px y menos) ===== */
@media (max-width: 768px) {
    
    /* Navegación */
    .nav {
        height: 80px;
        padding: 0 20px;
    }

    .nav_logo {
        width: 140px;
    }

    .nav_logo img {
        width: 140px;
    }

    .nav_burger {
        left: 20px;
    }

    .burger_img {
        width: 28px;
    }

    .nav_links {
        font-size: 1.8rem;
        padding: 20px 0;
    }

    /* Header ocupa toda la pantalla en tablet */
    .headercont {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }

    .header_title {
        font-size: 2.8rem;
        margin-top: 2rem;
        line-height: 1.1;
    }

    .header_paragraph {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .header_frase {
        font-size: 1.1rem;
        margin-bottom: 1.5em;
    }

    /* Botones globales */
    .buttons {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Goals */
    .goals,
    .types,
    #us,
    #questions {
        padding: 80px 20px 40px;
        min-height: auto;
    }

    .subtitle {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .goals_paragraph {
        font-size: 17px;
        margin-bottom: 25px;
        text-align: center;
    }

    .goals_main {
        gap: 3em;
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .goals_icons {
        padding: 25px 15px;
    }

    .goals_icon {
        width: 55px;
        height: 55px;
    }

    /* Service */
    .service {
        padding: 60px 20px 50px;
    }

    .service_paragraph {
        font-size: 18px;
        text-align: center;
    }

    .image-carousel {
        grid-template-columns: 1fr;
        gap: 3em;
    }

    .carousel-images {
        height: 320px;
        order: 1;
    }

    .carousel-content {
        height: auto;
        order: 2;
        text-align: center;
    }

    .service-info h3 {
        font-size: 1.8rem;
    }

    .service-info p {
        font-size: 1.1rem;
    }

    .carousel-navigation {
        justify-content: center;
        margin-top: 2em;
    }

    .carousel-btn {
        font-size: 2.2rem;
        padding: 0.6em 0.8em;
    }

    /* Types */
    .types_table {
        gap: 2em;
        padding-top: 30px;
    }

    .types_element {
        width: 100%;
        max-width: 400px;
        padding: 35px 25px;
    }

    .types_element--best {
        width: 100%;
        max-width: 420px;
        padding: 50px 30px;
    }

    .types_name {
        font-size: 1.4rem;
    }

    .types_items {
        font-size: 1.1rem;
        margin-top: 25px;
        margin-bottom: 35px;
    }

    /* Us */
    .us_container {
        grid-template-columns: 40px 1fr 40px;
        gap: 1.5em;
    }

    .us_body {
        grid-template-columns: 1fr;
        gap: 2.5em;
        text-align: center;
    }

    .us_texts {
        font-size: 18px;
        max-width: 600px;
    }

    .us_img {
        width: 220px;
        height: 220px;
    }

    /* Questions */
    .questions {
        padding: 60px 20px 40px;
    }

    .questions_paragraph {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .questions_container {
        gap: 1em;
        padding-top: 20px;
    }

    .questions_title {
        font-size: 17px;
        padding: 18px 20px;
    }

    .questions_show {
        font-size: 15px;
        line-height: 1.5;
    }

    .questions_answer {
        padding: 0 20px;
    }

    .questions_arrow {
        width: 22px;
        height: 22px;
    }

    /* Footer */
    .footer_container {
        flex-direction: column;
        gap: 2em;
        text-align: center;
    }

    .footer_inputs {
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===== MÓVIL GRANDE (480px y menos) ===== */
@media (max-width: 480px) {
    
    /* Navegación */
    .nav {
        height: 70px;
        padding: 0 15px;
    }

    .nav_logo {
        width: 120px;
    }

    .nav_logo img {
        width: 120px;
    }

    .nav_burger {
        left: 15px;
    }

    .burger_img {
        width: 24px;
    }

    .nav_link {
        padding: 100px 20px 30px 20px;
        gap: 1.5em;
    }

    .nav_links {
        font-size: 1.5rem;
        padding: 15px 0;
    }

    /* Header ocupa toda la pantalla en móvil */
    .headercont {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }


    .headercont::before {
        background-position: 25% center; /* Ajustar posición de la imagen para móviles */
    }
    .header_section {
        padding: 0 15px;
    }

    .header_title {
        font-size: 2.2rem;
        margin-top: 1.5rem;
        line-height: 1.0;
    }

    .header_paragraph {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .header_frase {
        font-size: 1rem;
        margin-bottom: 1.2em;
    }

    /* Botones globales */
    .buttons {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Secciones generales */
    .goals,
    .types,
    #us,
    #questions {
        padding: 60px 15px 30px;
    }

    .container {
        width: 100%;
        padding: 40px 0;
    }

    .subtitle {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    /* Goals */
    .goals_paragraph {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .goals_main {
        gap: 2em;
        padding-top: 40px;
        padding-bottom: 30px;
        grid-template-columns: 1fr;
    }

    .goals_icons {
        padding: 20px 15px;
        max-width: 300px;
        margin: 0 auto;
    }

    .goals_icon {
        width: 50px;
        height: 50px;
    }

    /* Service */
    .service {
        padding: 50px 15px 40px;
    }

    .service_container {
        gap: 2.5em;
    }

    .service_paragraph {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .carousel-images {
        height: 280px;
        border-radius: 15px;
    }

    .service-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-info p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .carousel-btn {
        font-size: 1.8rem;
        padding: 0.5em 0.6em;
    }

    /* Types */
    .types_table {
        gap: 1.5em;
        padding-top: 20px;
    }

    .types_element,
    .types_element--best {
        width: 100%;
        max-width: 350px;
        padding: 25px 20px;
        margin: 0 auto;
    }

    .types_name {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .types_items {
        font-size: 1rem;
        margin-top: 20px;
        margin-bottom: 30px;
        gap: 0.8em;
    }

    .types_buttons {
        padding: 15px 0;
        font-size: 16px;
    }

    /* Us */
    .us_container {
        grid-template-columns: 30px 1fr 30px;
        gap: 1em;
    }

    .us_body {
        gap: 2em;
    }

    .us_texts {
        font-size: 16px;
        max-width: 100%;
    }

    .us_img {
        width: 180px;
        height: 180px;
    }

    .us_arrow {
        width: 100%;
    }

    /* Questions */
    .questions {
        padding: 50px 15px 30px;
    }

    .questions_paragraph {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .questions_container {
        gap: 0.8em;
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .questions_title {
        font-size: 15px;
        padding: 15px 15px;
    }

    .questions_show {
        font-size: 13px;
        line-height: 1.4;
    }

    .questions_answer {
        padding: 0 15px;
    }

    .questions_arrow {
        width: 18px;
        height: 18px;
        margin-left: 8px;
    }

    .questions_offer {
        margin-top: 25px;
    }

    .questions_offer .subtitle {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .questions_copy {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .questions .buttons {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Footer */
    .footer {
        padding: 30px 15px 20px;
    }

    .footer_title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .footer_container {
        gap: 1.5em;
    }

    .footer_inputs {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .footer_input {
        margin-bottom: 10px;
        height: 45px;
        font-size: 14px;
    }

    .footer_submit {
        height: 45px;
        font-size: 14px;
        align-self: center;
        width: 100%;
    }

    .nav_link--footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer_copyright {
        font-size: 12px;
    }
}

/* ===== MÓVIL EXTRA PEQUEÑO (320px y menos) ===== */
@media (max-width: 320px) {
    
    .nav {
        height: 60px;
        padding: 0 10px;
    }

    .nav_logo {
        width: 100px;
    }

    .nav_logo img {
        width: 100px;
    }

    /* Header sigue ocupando toda la pantalla */
    .headercont {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }

    .header_title {
        font-size: 1.8rem;
    }

    .header_paragraph {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1.6rem;
    }

    .goals,
    .types,
    #us,
    #questions {
        padding: 40px 10px 20px;
    }

    .carousel-images {
        height: 220px;
    }

    .us_img {
        width: 150px;
        height: 150px;
    }

    .types_element,
    .types_element--best {
        padding: 20px 15px;
    }
}

/* Media queries actualizadas para questions */

@media (max-width: 800px) {
    .questions {
        padding: 60px 20px 40px; /* Aún más compacto en tablet */
    }
    
    .questions_container {
        gap: 0.8em;
        padding-top: 15px;
    }
    
    .questions_title {
        font-size: 16px;
        padding: 15px 0;
    }
    
    .questions_show {
        font-size: 13px;
    }
    
    .questions_copy {
        width: 95%;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .questions {
        padding: 40px 20px 30px; /* Muy compacto en móviles */
    }
    
    .questions_paragraph {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .questions_container {
        gap: 0.5em;
        padding-top: 10px;
    }
    
    .questions_title {
        font-size: 14px; /* Ya estaba, mantener */
        padding: 12px 0;
    }
    
    .questions_show {
        font-size: 12px;
    }
    
    .questions_offer .subtitle {
        font-size: 1.5rem;
    }
    
    .questions_copy {
        width: 100%;
        font-size: 13px;
        margin-bottom: 15px;
    }
}