/* VARIABLES DE COLOR Y FUENTES */
:root {
    --rojo-penal: #8B0000;
    --negro: #1A1A1A;
    --madera: #8B5A2B;
    --plateado: #C0C0C0;
    --gris-oscuro: #333333;
    --gris-claro: #F4F4F4;
    --blanco: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 10vh;
}

body {
    background-color: var(--gris-claro);
    color: var(--negro);
}

.btnWsp {
    position: fixed;
    bottom: 3.125rem;
    right: 1.25rem;
    z-index: 1500 !important;
}

.btnWsp a img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--petrolBlue);
}

/* NAVBAR */
.navbar {
    background-color: var(--negro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    height: 10vh;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--rojo-penal);
}

.nav-wrapper {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    width: 80%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 20%;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--blanco);
}

.logo img {
    width: 35%;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 25px;
}

.nav-links a {
    color: var(--plateado);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--rojo-penal);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 2rem;
    cursor: pointer;
}

.btn-ingresar {
    background-color: transparent;
    border: 2px solid var(--madera);
    color: var(--madera);
    padding: 8px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-ingresar:hover {
    background-color: var(--madera);
    color: var(--blanco);
}

/* HERO SECTION */
.hero-section {
    padding: 120px 5% 50px;
    background: linear-gradient(135deg, var(--gris-oscuro), var(--negro));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h2 {
    color: var(--blanco);
    margin: 0 auto 2% auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 230px);
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.center-img {
    grid-column: 2 / 4;
    /* Ocupa columna 2 y 3 */
    grid-row: 1 / 3;
    /* Ocupa fila 1 y 2 */
    margin: 0;
    border: 4px solid var(--madera);
    /* Más madera para resaltar */
    box-shadow: 0 10px 20px rgba(139, 90, 43, 0.3);
    /* Sombra tono madera */
    z-index: 2;
}

.img-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--gris-oscuro);
    transition: transform 0.3s;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.img-box:hover img {
    transform: scale(1.1);
}

/* VIDEO SECTION */
.video-section {
    display: flex;
    height: 600px;
    background-color: var(--blanco);
    margin: 1% auto;
}

.video-container {
    width: 75%;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efecto Picture in Picture + Boton Cerrar */
.video-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.pip-active {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    height: 200px;
    z-index: 999;
    border: 3px solid var(--madera);
    /* Detalles en madera */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    background: var(--negro);
    animation: popIn 0.3s forwards;
}

.pip-active video {
    border-radius: 7px;
}

.pip-active #close-pip {
    display: block !important;
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--rojo-penal);
    color: var(--blanco);
    border: 2px solid var(--blanco);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.pip-active #close-pip:hover {
    transform: scale(1.1);
    background: var(--negro);
}

.note-container {
    width: 25%;
    background-color: var(--gris-oscuro);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--madera);
}

.note-box {
    background: linear-gradient(135deg, var(--plateado), var(--gris-claro));
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto 2% auto;
}

.note-box h3 {
    color: var(--rojo-penal);
    margin-bottom: 10px;
}

.btn-reservar {
    background: linear-gradient(45deg, var(--rojo-penal), var(--madera));
    color: var(--blanco);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    transition: 0.4s ease;
}

.btn-reservar:hover {
    background: linear-gradient(45deg, var(--madera), var(--negro));
    box-shadow: 0 5px 10px var(--madera);
    transition: 0.4s ease;
}

/* SECCIONES COMUNES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%;
    text-align: center;
}

.container h2 {
    color: var(--rojo-penal);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.container p {
    color: var(--gris-oscuro);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* TRAYECTORIA */
.trayectoria-section {
    background-color: var(--blanco);
}

.trayectoria-section p {
    text-align: justify;
    font-size: 1.1rem;
}

/* CARDS (Equipo, Casos, Testimonios) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card h4 {
    color: var(--negro);
    margin: 15px 0 5px;
}

.card p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    padding: 0 10px;
}

.caso-card {
    cursor: pointer;
}

/* TESTIMONIOS */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.testimonio-card {
    background: var(--plateado);
    padding: 25px;
    border-radius: 10px;
    font-style: italic;
    position: relative;
    border-left: 5px solid var(--rojo-penal);
}

.testimonio-card span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-style: normal;
    color: var(--negro);
}

/* CONTACTO Y MAPA */
.contacto-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0.5% auto;
}

.contacto-form {
    width: 50%;
    background: var(--negro);
    color: var(--blanco);
    padding: 50px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 600px;
}

.contacto-form h2 {
    color: var(--plateado);
    margin-bottom: 20px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gris-oscuro);
    background: var(--gris-claro);
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    background: var(--madera);
    color: var(--blanco);
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--rojo-penal);
}

.contacto-mapa {
    width: 50%;
}

.contacto-mapa iframe {
    width: 100%;
    height: 68.5vh;
}

/* Footer */
.footer {
    background: var(--negro);
    padding: 3rem 2rem 1rem;
    text-align: center;
    color: var(--plateado);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-top: 5px solid var(--madera);
}

.footer h5 {
    margin-bottom: 2%;
}

.content-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 1% auto 2% auto;
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 50%;
}

.social-links a i {
    color: var(--plateado);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover i {
    color: var(--rojo-penal);
    transform: translateY(-3px);
}

.contact-links {
    width: 50%;
}

.contact-links a {
    text-decoration: none;
}

.contact-links a h5,
.contact-links a h5 i {
    color: var(--plateado);
    transition: 0.4s ease;
}

.contact-links a:hover h5,
.contact-links a:hover h5 i {
    color: var(--rojo-penal);
    transition: 0.4s ease;
}

.footer p a {
    text-decoration: none;
    font-weight: bold;
    color: var(--plateado);
    transition: 0.4s ease;
}

.footer p a:hover {
    color: var(--rojo-penal);
    transition: 0.4s ease;
}

/* MODALES Y GLASSMORPHISM */
.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Glassmorphism Popup */
.glass-content {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    color: var(--blanco);
    text-align: center;
    width: 60%;
    height: auto;
    transform: scale(0.9);
    animation: popIn 0.3s forwards;
}

.glass-content h3 {
    color: var(--rojo-penal);
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px #000;
}

.glass-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px #000;
}

/* Modal Calendario */
.calendar-box {
    background: var(--blanco);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.calendar-box h3 {
    color: var(--negro);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--madera);
    padding-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--rojo-penal);
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--plateado);
    border-radius: 5px;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}