
/* =========================================
       VARIABLES DE COLORES
       ========================================= */

:root {
    --negro-elegante: #111111;
    --blanco-cuarzo: #F5F5F0;
    --dorado: #C5A869;
    --gris-oscuro: #333333;
    --blanco: #FFFFFF;
}

/* =========================================
   CONFIGURACIÓN GENERAL
   ========================================= */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gris-oscuro);
    background-color: var(--blanco-cuarzo);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* =========================================
   BARRA DE NAVEGACIÓN
   ========================================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
    display: flex;
    justify-content: center;
    text-align: center;
}

nav.scrolled {
    background-color: var(--negro-elegante);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--dorado);
}

.logo-nav {
    position: fixed;
    left: 20px;
    top: -27px;
    height: 100px;
    z-index: 1001;
    cursor: default;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .logo-nav.logo-achicado {
        height: 100px;
        top: -28px;
    }
}

#btn-cerrar {
    display: none;
}

/* =========================================
   SECCIONES COMUNES
   ========================================= */

section {
    padding: 100px 20px;
    text-align: center;
}

h2 {
    color: var(--negro-elegante);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--dorado);
    margin: 15px auto;
}

.contenido-texto {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

section div h3 {
    color: var(--dorado);
    margin-top: 40px;
}

#estudio {
    background-color: var(--blanco);
}

#texto-estudio {
    text-align: left;
}

/* =========================================
   CLASES UTILITARIAS Y DE MODULARIZACIÓN
   ========================================= */

.bg-cuarzo {
    background-color: var(--blanco-cuarzo);
}

.bg-blanco {
    background-color: var(--blanco);
}

.subtitulo-dorado {
    color: var(--dorado);
    margin-top: 40px;
}

.texto-izquierdo {
    text-align: left;
}

.item-especialidad {
    margin-bottom: 30px;
}

.titulo-especialidad {
    color: var(--negro-elegante);
    border-bottom: 1px solid var(--dorado);
    padding-bottom: 5px;
}

/* =========================================
   LOGO PRINCIPAL
   ========================================= */

.logo-hero {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
    margin-top: -120px;
}


@media (max-width: 768px) {
    .logo-hero {
        max-width: 90%;
    }

}

/* =========================================
   SECCIÓN INICIO (HERO) CON EFECTO PARALLAX
   ========================================= */

#inicio {
    height: 100vh;
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url('../assets/fondo.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanco);
}

#inicio h1 {
    font-size: 4.5rem;
    margin: 0;
    color: var(--dorado);
    font-weight: 300;
    letter-spacing: 2px;
}

#inicio p {
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* =========================================
   FORMULARIOS DE CONTACTO
   ========================================= */

.contenedor-formularios {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
    flex-wrap: wrap;
}

.caja-form {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
    border-top: 4px solid var(--dorado);
}

.caja-form h3 {
    color: var(--negro-elegante);
    margin-top: 0;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

textarea {
    resize: vertical;
    height: 100px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background-color: var(--negro-elegante);
    color: var(--dorado);
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--dorado);
    color: var(--negro-elegante);
}

.icono-wa {
    color: var(--dorado)
}

.icono-mail {
    color: var(--dorado);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background-color: var(--negro-elegante);
    color: var(--blanco-cuarzo);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* ================= DISEÑO RESPONSIVO (CELULARES) ================= */

@media (max-width: 768px) {

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(17, 17, 17, 100);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        padding: 15px 0;

    }

    nav.abierto {
        left: 0 !important;
        z-index: 1002;
    }

    #btn-cerrar {
        display: block;
        position: absolute;
        top: 10px;
        right: 15px;
        color: var(--dorado);
        font-size: 2.0rem;
        cursor: pointer;
    }

    #btn-cerrar:active {
        transform: scale(0.9);
    }

    .logo-nav {
        top: 15px;
        left: 15px;
        height: 50px;
        background-color: rgba(20, 20, 20, 0.85);
        padding: 6px;
        border-radius: 10px;
        border: 1px solid #c5a880;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        cursor: pointer;
    }

    .logo-nav:active {
        transform: scale(0.9);
    }

    nav a {
        margin:0;
        font-size: 1.2rem;
        width: 80%;
        box-sizing: border-box;
        padding: 20px 25px;
        text-align: left;
        border-bottom: 0.5px solid var(--dorado);
    }

    nav a:last-child {
        border-bottom: none;
    }

    #inicio {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 40px 20px;
    }

    .contenedor-formularios {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    .caja-form {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }

}






