html,
body {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    height: 100px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #747474;
}

.nav-links a:hover {
    color: #e0b07a;
}

.btn-nav {
    background: #e0b07a;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

/* HAMBURGER */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .navbar {
        height: 70px;
    }

    .logo img {
        height: 50px;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid #eee;
    }

    nav.active {
        max-height: 400px;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        align-items: center;
    }

    .btn-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    background: url('../img/hero1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.show {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-audio {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

.btn-audio-stop {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

.btn-primary {
    background: #e0b07a;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
}

.seccion-dos {
    padding: 100px 0;
    background-color: #e3e3e3;
}

.contenido-principal {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.contenido-principal.show {
    opacity: 1;
    transform: translateY(0);
}

.col-imagen {
    position: relative;
    flex: 1;
}

.col-imagen img {
    width: 100%;
    border-radius: 20px;
}

.badge-salud {
    position: absolute;
    bottom: -25px;
    right: 30px;
    background: #2e6f9e;
    color: white;
    padding: 18px 28px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.badge-salud span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.col-texto {
    flex: 1;
}

.tag {
    display: inline-block;
    background: #e8eef3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.col-texto h2 {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.col-texto p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.valores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.valores .card {
    padding: 30px;
    opacity: 0;
    transform: translateX(-60px) translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.valores .card.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #e8eef3;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 26px;
    color: #2e6f9e;
}

.card-icon img {
    height: 45px;
    width: 45px;
}

.valores .card h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

.valores .card p {
    font-size: 14px;
    color: #666;
}

.servicios {
    background: #ffffff;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.servicios.show {
    opacity: 1;
    transform: translateY(0);
}

.servicios-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.servicios-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #1e293b;
}

.servicios-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #475569;
    font-size: 16px;
}

.categoria {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.categoria-icono {
    background: #e8dccf;
    padding: 15px;
    border-radius: 12px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cards .card {
    overflow: hidden;
}

.cards .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1e293b;
}

.card-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 1024px) {

    .valores {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .valores {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contenido-principal {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 36px;
    }

    .servicios-header h2 {
        font-size: 32px;
    }
}

.servicio-detalle {
    padding: 100px 0;
    background-color: #e3e3e3;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.servicio-detalle.show {
    opacity: 1;
    transform: translateX(0);
}

.servicio-detalle-box {
    background: #2e6f9e;
    border-radius: 20px;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.servicio-info {
    flex: 1;
}

.servicio-titulo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #ffffff;
}

.icono-cuadro {
    width: 50px;
    height: 50px;
    background: #dbe6ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icono-cuadro i {
    font-size: 22px;
    color: #2e6f9e;
}

.servicio-info h3 {
    font-size: 28px;
    color: #1e293b;
}

.servicio-info p {
    margin-bottom: 15px;
    color: #475569;
    line-height: 1.6;
}

.link-servicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    text-decoration: none;
    color: #2e6f9e;
    font-weight: 600;
}

.link-servicio i {
    font-size: 14px;
}

.servicio-media {
    flex: 1;
}

.servicio-media img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 25px;
}

.servicio-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.servicio-lista .item {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    border: 1px solid #e2e8f0;
}

@media (max-width: 1024px) {
    .servicio-detalle-box {
        flex-direction: column;
    }

    .servicio-lista {
        grid-template-columns: 1fr;
    }
}

.cta-section {
    min-height: 400px;
    background-color: #d8cec2;
}

.btn-solicitar {
    background: #2e6f9e;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    border: none;
    box-shadow: none;
}

:root {
    --azul-principal: #2c5f8a;
}

#contacto {
    background-color: #f5f6f8;
}

.badge-contacto {
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.titulo-seccion {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.subtitulo {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
}

.team-left,
.team-right {
    opacity: 0;
    transition: all 0.9s cubic-bezier(.22, .61, .36, 1);
}

.team-left {
    transform: translateX(-120px);
}

.team-right {
    transform: translateX(120px);
}

.team-left.show,
.team-right.show {
    opacity: 1;
    transform: translateX(0);
}

.card-contacto {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e6e6e6;
    transition: 0.3s ease;
}

.card-contacto:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.whatsapp-card {
    background: #e9f7ef;
    border: 1px solid #cdebd9;
}

.icono {
    width: 45px;
    height: 45px;
    background: #eef2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: var(--azul-principal);
}

.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dcdcdc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 0.15rem rgba(44, 95, 138, 0.15);
}

.footer {
    background-color: #141a33;
    color: #d6d8e0;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer p {
    color: #aeb2c3;
    line-height: 1.6;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aeb2c3;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--azul-principal);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 50px 0 25px;
}

.footer-bottom {
    font-size: 0.85rem;
    color: #9aa0b5;
}

.footer-legal a {
    color: #9aa0b5;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: #ffffff;
}

.link4elem {
    text-decoration: none;
}

.logo-blanco {
    filter: brightness(0) invert(1);
}

.logo-blanco-centrado {
    filter: brightness(0) invert(1);
    align-items: center;
}

.team-section {
    background-color: #ffffff;
}

.team-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.2);
    border-radius: 50%;
    border: 5px solid #788a7c;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.3);
}

.team-name {
    color: #788a7c;
    font-weight: 600;
}

.team-title {
    color: #1d639e;
    font-weight: 500;
}

.team-badge {
    display: inline-block;
    background-color: #1d639e;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-btn img {
    width: 60px;
    height: 60px;
    cursor: pointer;
    animation: aparecer 0.6s ease forwards, rebote 1s ease 0.6s 2;
}

.whatsapp-message {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 220px;
    width: max-content;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: mostrarMensaje 0.5s ease forwards;
    animation-delay: 2s;
}

@media (max-width: 480px) {
    .whatsapp-message {
        max-width: 180px;
        font-size: 13px;
    }

    .whatsapp-btn img {
        width: 50px;
        height: 50px;
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rebote {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes mostrarMensaje {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(28px, 5vw, 52px);
}

.servicios-header h2 {
    font-size: clamp(24px, 4vw, 42px);
}

.col-texto h2 {
    font-size: clamp(24px, 4vw, 36px);
}

@media (max-width: 1024px) {

    .container {
        width: 92%;
    }

    .contenido-principal {
        flex-direction: column;
        gap: 40px;
    }

    .valores {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicio-detalle-box {
        flex-direction: column;
        padding: 40px;
        gap: 40px;
    }

    .servicio-info {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {

    .container {
        width: 95%;
    }

    .navbar {
        height: 70px;
    }

    nav {
        padding: 10px 0;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    .hero {
        text-align: center;
        padding: 60px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
        max-width: 280px;
    }

    .contenido-principal {
        flex-direction: column;
        gap: 30px;
    }

    .badge-salud {
        position: static;
        margin-top: 15px;
        text-align: center;
    }

    .valores {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .servicio-detalle-box {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .servicio-lista {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 20px;
    }

    .cta-section {
        padding: 40px 0;
        text-align: center;
    }

    .whatsapp-btn img {
        width: 50px;
        height: 50px;
    }

    .whatsapp-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 26px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    p {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-audio {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .servicio-info {
        margin-left: 0 !important;
    }
}