* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: white;
}
/* ENCABEZADO */

.encabezado {
    height: 90px;
    padding: 10px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid #eee;
}

.logo img {
    height: 85px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-size: 15px;
}

nav a:hover {
    color: #b08a20;
}

.boton-cita {
    background: #b08a20;
    color: white !important;
    padding: 12px 20px;
    border-radius: 4px;
}
/* PORTADA */

.portada {
    min-height: 650px;
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    background:
        radial-gradient(circle at 80% 50%, #3b3b3b 0%, #171717 35%, #090909 75%);

    color: white;
}

.contenido-portada {
    max-width: 650px;
}

.subtitulo {
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #c7a32b;
}

h1 {
    font-size: clamp(45px, 6vw, 72px);
    line-height: 1.05;
    margin: 20px 0;
    font-weight: 500;
}

.descripcion {
    font-size: 20px;
    line-height: 1.7;
    color: #dddddd;
    max-width: 560px;
    margin-bottom: 35px;
}

.botones-portada {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.boton-principal {
    display: inline-block;
    text-decoration: none;
    background: #c7a32b;
    color: white;
    padding: 16px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.boton-principal:hover {
    background: #a98718;
    transform: translateY(-2px);
}

.boton-secundario {
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid #c7a32b;
    padding: 15px 30px;
    border-radius: 4px;
    transition: 0.3s;
}

.boton-secundario:hover {
    background: #c7a32b;
}
/* LOGO DE LA PORTADA */

.detalle-portada {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 360px;
}

.circulo-logo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 15px;
    background: #111;
    border: 2px solid #c7a32b;
    box-shadow: 0 0 50px rgba(199, 163, 43, 0.18);
}

.circulo-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* SERVICIOS */

.servicios {
    padding: 90px 8%;
    text-align: center;
}

h2 {
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 50px;
}

.tarjetas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tarjeta {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

.tarjeta h3 {
    margin-top: 0;
    font-size: 21px;
}

.tarjeta p {
    color: #666;
    line-height: 1.6;
}
/* NOSOTROS */

.nosotros {
    padding: 100px 12%;
    background: #f5f5f3;
}

.nosotros div {
    max-width: 700px;
}

.nosotros p:not(.subtitulo) {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}
/* CONTACTO */

.contacto {
    padding: 100px 8%;
    text-align: center;
}
/* PIE DE PÁGINA */

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 25px;
}
/* CELULARES Y TABLETS */

@media (max-width: 800px) {

    /* ENCABEZADO */

    .encabezado {
        height: auto;
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .logo img {
        height: 65px;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 14px;
    }

    .boton-cita {
        padding: 10px 16px;
    }
/* PORTADA */

    .portada {
    width: 100%;
    min-height: auto;
    padding: 60px 7%;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    text-align: center;
    gap: 40px;
}

.contenido-portada {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.detalle-portada {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circulo-logo {
    width: 240px;
    height: 240px;
}
 /* SERVICIOS */

.servicios {
    padding: 100px 8%;
    text-align: center;
    background: white;
}

.servicios h2 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.texto-servicios {
    max-width: 650px;
    margin: 0 auto 55px;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

   .tarjetas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: auto;

}

.tarjeta {
    padding: 35px 25px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: white;
    text-align: center;
    transition: 0.3s;
}

.tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #c7a32b;
}

.icono {
    width: 55px;
    height: 55px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #c7a32b;
    border-radius: 50%;

    color: #c7a32b;
    font-size: 25px;
}

.tarjeta h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 500;
}

.tarjeta p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}
/* NOSOTROS */

.nosotros {
    padding: 110px 10%;
    background: #f5f5f3;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.nosotros-contenido {
    max-width: 650px;
}

.nosotros-contenido h2 {
    font-size: 42px;
    line-height: 1.2;
    margin: 15px 0 30px;
}

.nosotros-contenido p:not(.subtitulo) {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.nosotros-destacado {
    min-width: 300px;
    height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #c7a32b;
    background: #111;
    color: white;
}

.numero {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 5px;
    color: #c7a32b;
}

.nosotros-destacado p {
    text-align: center;
    letter-spacing: 5px;
    line-height: 1.7;
    font-size: 12px;
}
}
/* CONTACTO */

.contacto {
    padding: 110px 8%;
    text-align: center;
    background: #f5f5f3;
}

.texto-contacto {
    max-width: 600px;
    margin: -25px auto 55px;
    color: #666;
    line-height: 1.7;
}

.contacto-contenedor {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    text-align: left;
}

.contacto-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.dato-contacto {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.dato-contacto:last-child {
    border-bottom: none;
}

.dato-contacto span {
    font-size: 25px;
    width: 40px;
    text-align: center;
}

.dato-contacto h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.dato-contacto p {
    margin: 0;
    color: #777;
}

.contacto-accion {
    padding: 50px;
    background: #111;
    color: white;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-accion h3 {
    font-size: 30px;
    font-weight: 500;
    margin-top: 0;
}

.contacto-accion p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contacto-accion .boton-principal {
    align-self: flex-start;
}
/* CONTACTO EN CELULAR */

@media (max-width: 800px) {

    .contacto {
        padding: 70px 7%;
    }

    .contacto-contenedor {
        grid-template-columns: 1fr;
    }

    .contacto-info {
        padding: 25px;
    }

    .contacto-accion {
        padding: 35px;
    }

}    
/* AGENDAR CITA */

.cita {
    padding: 110px 8%;
    background: white;
    text-align: center;
}

.texto-cita {
    max-width: 650px;
    margin: -25px auto 50px;
    color: #666;
    line-height: 1.7;
}

.formulario-cita {
    max-width: 850px;
    margin: auto;
    padding: 45px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

    text-align: left;

    background: #f5f5f3;
    border-radius: 12px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo label {
    font-size: 14px;
    font-weight: bold;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 14px;

    border: 1px solid #ddd;
    border-radius: 5px;

    font-family: inherit;
    font-size: 15px;

    background: white;
}

.campo textarea {
    resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: #c7a32b;
}

.campo-completo {
    grid-column: 1 / -1;
}

.boton-enviar {
    border: none;
    cursor: pointer;
    font-size: 16px;
    grid-column: 1 / -1;
    justify-self: center;
}

#mensaje-cita {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    margin-top: -20px;
}
/* CITA EN CELULAR */

@media (max-width: 800px) {

    .cita {
        padding: 70px 7%;
    }

    .formulario-cita {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .campo-completo {
        grid-column: auto;
    }

    .boton-enviar {
        grid-column: auto;
        width: 100%;
    }
}
/* TESTIMONIOS */

.testimonios {
    padding: 110px 8%;
    text-align: center;
    background: #111;
    color: white;
}

.texto-testimonios {
    max-width: 600px;
    margin: -25px auto 55px;
    color: #bbb;
    line-height: 1.7;
}

.testimonios-grid {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonio {
    padding: 35px;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: left;
}

.estrellas {
    color: #c7a32b;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonio p {
    color: #ddd;
    line-height: 1.7;
    font-size: 15px;
}

.testimonio h3 {
    margin-top: 25px;
    font-size: 14px;
    font-weight: normal;
    color: #c7a32b;
}
/* TESTIMONIOS EN CELULAR */

@media (max-width: 800px) {

    .testimonios {
        padding: 70px 7%;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

}
/* FOOTER */

.footer {
    background: #090909;
    color: white;
    padding: 70px 8% 25px;
}

.footer-contenido {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-marca img {
    width: 130px;
    height: auto;
    margin-bottom: 15px;
}

.footer-marca p {
    color: #aaa;
}

.footer-columna {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-columna h3 {
    color: #c7a32b;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 10px;
}

.footer-columna a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-columna a:hover {
    color: white;
}

.footer-columna p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.footer-final {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;

    border-top: 1px solid #292929;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-final p {
    color: #777;
    font-size: 13px;
}

.footer-final a {
    color: #c7a32b;
    text-decoration: none;
}
/* FOOTER EN CELULAR */

@media (max-width: 800px) {

    .footer {
        padding: 60px 7% 25px;
    }

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
    }

    .footer-marca {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-final {
        flex-direction: column;
        text-align: center;
    }

}
/* CARRUSEL DE TESTIMONIOS */

.carrusel {
    max-width: 850px;
    margin: 50px auto 20px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonios-contenedor {
    flex: 1;
    overflow: hidden;
}

.testimonio {
    display: none;
    padding: 45px;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 10px;
    text-align: center;
}

.testimonio.activo {
    display: block;
}

.estrellas {
    color: #c7a32b;
    font-size: 20px;
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.testimonio p {
    color: #ddd;
    line-height: 1.8;
    font-size: 17px;
}

.testimonio h3 {
    margin-top: 25px;
    color: #c7a32b;
    font-size: 14px;
    font-weight: normal;
}

.flecha {
    width: 45px;
    height: 45px;

    border: 1px solid #c7a32b;
    border-radius: 50%;

    background: transparent;
    color: #c7a32b;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.flecha:hover {
    background: #c7a32b;
    color: #111;
}

.indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.indicador {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.activo-indicador {
    background: #c7a32b;
}
/* CARRUSEL EN CELULAR */

@media (max-width: 800px) {

    .carrusel {
        gap: 8px;
    }

    .testimonio {
        padding: 30px 20px;
    }

    .flecha {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

}
/* WHATSAPP FLOTANTE */

.whatsapp-flotante {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: white;

    border-radius: 50%;

    text-decoration: none;

    font-size: 30px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

    z-index: 9999;

    transition: 0.3s;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
}
/* WHATSAPP EN CELULAR */

@media (max-width: 800px) {

    .whatsapp-flotante {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;

        font-size: 27px;
    }
/* AJUSTES FINALES PARA CELULAR */

@media (max-width: 800px) {

    /* SERVICIOS: 2 COLUMNAS */

    .tarjetas {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

    .tarjeta {
        padding: 25px 15px;
    }

    .tarjeta h3 {
        font-size: 17px;
    }

    .tarjeta p {
        font-size: 14px;
    }


    /* CONÓCENOS */

    .nosotros {
        width: 100%;
        padding: 70px 7%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        overflow: hidden;
    }

    .nosotros-contenido {
        width: 100%;
        max-width: 100%;
    }

    .nosotros-contenido h2 {
        font-size: 38px;
        line-height: 1.15;
        margin: 15px 0 25px;
    }

    .nosotros-contenido p:not(.subtitulo) {
        font-size: 16px;
        line-height: 1.7;
    }

    .nosotros-destacado {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 260px;
    }

    .nosotros-destacado img {
        max-width: 80%;
        height: auto;
    }

}
/* CORRECCIÓN CONÓCENOS EN CELULAR */

@media (max-width: 800px) {

    .nosotros {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 70px 7%;
        box-sizing: border-box;
        overflow: hidden;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nosotros-contenido {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .nosotros-contenido h2 {
        width: 100%;
        max-width: 100%;
        font-size: 38px;
        line-height: 1.15;
        margin: 15px 0 25px;
        overflow-wrap: break-word;
    }

    .nosotros-contenido p {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .nosotros-destacado {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
/* CORRECCIÓN DEFINITIVA DE ANCHO EN CELULAR */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 800px) {

    .portada {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 60px 7%;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
        gap: 40px;
        overflow: hidden;
    }

    .contenido-portada {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .descripcion {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        overflow-wrap: break-word;
    }

    .botones-portada {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .boton-principal,
    .boton-secundario {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
        text-align: center;
    }

    .detalle-portada {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .circulo-logo {
        width: 240px;
        height: 240px;
        max-width: 80vw;
        max-height: 80vw;
    }

    .whatsapp-flotante {
        position: fixed;
        right: 18px;
        left: auto;
        bottom: 18px;
        width: 55px;
        height: 55px;
        z-index: 9999;
    }
}
/* NUESTRO TRABAJO EN CELULAR */

@media (max-width: 800px) {

    .casos {
        width: 100%;
        max-width: 100%;
        padding: 70px 7%;
        margin: 0;
        box-sizing: border-box;
    }

    .casos h2 {
        width: 100%;
        max-width: 100%;
        font-size: 36px;
        line-height: 1.15;
        overflow-wrap: break-word;
    }

    .texto-casos {
        width: 100%;
        max-width: 100%;
        line-height: 1.7;
    }

    .galeria {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .caso {
        width: 100%;
        max-width: 100%;
    }
}
}
.boton-ver-cita {
    display: inline-block;
    padding: 13px 28px;
    background: #1c1c1c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s ease;
    margin-top: 2px;
}

.boton-ver-cita:hover {
    background: #333333;
    transform: translateY(-1px);
}