/* VARIABLES Y RESET */
:root {
    --primary: #f59e0b; /* Naranja/Amarillo construcción */
    --primary-hover: #d97706;
    --dark: #111827; /* Gris muy oscuro */
    --light: #f3f4f6; /* Gris claro */
    --text: #374151;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--light); color: var(--text); line-height: 1.7; padding-top: 90px; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER - GLASSMORPHISM Y PÍLDORAS */
header {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.logo { color: var(--white); text-decoration: none; font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.logo span { color: var(--primary); }

nav { display: flex; align-items: center; gap: 25px; }
.nav-links { display: flex; list-style: none; gap: 10px; }
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: var(--dark); }

select {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}
select option { background: var(--dark); color: var(--white); }

/* =========================================
   CONFIGURACIÓN DEL VÍDEO DE FONDO
========================================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-color: var(--dark); /* Color de fondo por si el vídeo tarda un segundo en cargar */
}

/* El vídeo ocupa todo el espacio sin deformarse */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover; /* Esto es clave para que sea responsive */
}

/* Capa oscura semitransparente sobre el vídeo para que se lea el texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.9));
    z-index: 1;
}

/* El texto se pone por encima de todo */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.hero-content h1 { font-size: 4.5rem; font-weight: 900; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.3rem; max-width: 800px; color: #e5e7eb; margin: 0 auto; }
/* ========================================= */

.page-header { background: var(--dark); color: var(--white); padding: 80px 5%; text-align: center; border-bottom: 5px solid var(--primary); }
.page-header h1 { font-size: 3.5rem; font-weight: 800; text-transform: uppercase; }

.container { max-width: 1400px; margin: 0 auto; padding: 80px 5%; min-height: 60vh; }

.text-block { background: var(--white); padding: 50px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 60px; border-left: 8px solid var(--primary); }
.text-block h2 { color: var(--dark); font-size: 2.2rem; margin-bottom: 25px; text-transform: uppercase; }
.text-block p { font-size: 1.15rem; margin-bottom: 20px; color: #4b5563; }

/* GRID DE SERVICIOS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.service-card { background: var(--dark); border-radius: 10px; overflow: hidden; text-align: center; box-shadow: 0 15px 30px rgba(0,0,0,0.1); transition: transform 0.4s ease; }
.service-card:hover { transform: translateY(-10px); }
.service-card img { width: 100%; height: 280px; object-fit: cover; border-bottom: 4px solid var(--primary); filter: grayscale(20%); transition: filter 0.3s; }
.service-card:hover img { filter: grayscale(0%); }
.service-card h3 { color: var(--white); font-size: 1.4rem; padding: 30px 20px; text-transform: uppercase; letter-spacing: 1px; }

/* RESEÑAS */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.review-card { background: var(--white); padding: 50px 40px; border-radius: 10px; border-top: 6px solid var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.05); position: relative; }
.review-card::before { content: '"'; font-size: 6rem; color: var(--light); position: absolute; top: -10px; left: 20px; font-family: Georgia, serif; line-height: 1; }
.review-card p { font-style: italic; font-size: 1.2rem; color: var(--text); position: relative; z-index: 2; font-weight: 500; }

/* FAQ */
.faq-item { background: var(--white); padding: 40px; border-radius: 10px; margin-bottom: 30px; border-left: 6px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-item h3 { color: var(--dark); margin-bottom: 15px; font-size: 1.4rem; text-transform: uppercase; }
.faq-item p { font-size: 1.1rem; color: #4b5563; }

/* CONTACTO */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info { background: var(--dark); color: var(--white); padding: 50px; border-radius: 10px; }
.contact-info h2 { color: var(--primary); margin-bottom: 30px; font-size: 2rem; text-transform: uppercase; }
.contact-info p { margin-bottom: 20px; font-size: 1.2rem; display: flex; flex-direction: column; }
.contact-info strong { color: var(--primary); margin-bottom: 5px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.map-container { width: 100%; height: 100%; min-height: 500px; border-radius: 10px; overflow: hidden; border: 4px solid var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* LEGAL */
.legal-content h1, .legal-content h2 { color: var(--dark); text-transform: uppercase; }
.legal-content h1 { font-size: 2.8rem; margin-bottom: 40px; padding-bottom: 15px; border-bottom: 4px solid var(--primary); }
.legal-content h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 20px; }
.legal-content p, .legal-content ul { font-size: 1.15rem; margin-bottom: 20px; color: #4b5563; }
.legal-content ul { padding-left: 30px; }

/* FOOTER */
footer { background: var(--dark); padding: 60px 5% 30px; color: var(--white); text-align: center; border-top: 5px solid var(--primary); }
.footer-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-logos { margin-bottom: 30px; display: flex; justify-content: center; align-items: center; }
.footer-logos img { height: 150px; background: rgba(255, 255, 255, 0); padding: 10px; border-radius: 8px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; position: static; }
    body { padding-top: 0; }
    nav { flex-direction: column; width: 100%; margin-top: 20px; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 15px; }
    .nav-links a { display: block; border-radius: 5px; }
    select { width: 100%; margin-top: 10px; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .page-header h1 { font-size: 2.2rem; }
    .text-block { padding: 30px 20px; }
    .contact-info { padding: 30px 20px; }
    .map-container { min-height: 350px; }
    .footer-links { flex-direction: column; gap: 15px; }
}