:root {
    --bg-black: #0a0a0a;       /* Negro profundo */
    --bg-dark-gray: #141414;   /* Gris muy oscuro para tarjetas */
    --text-white: #f0f0f0;     /* Blanco suave */
    --text-gray: #a0a0a0;      /* Texto secundario */
    --gold: #d4af37;           /* EL COLOR DORADO */
    --gold-hover: #b59020;     /* Dorado más oscuro para hover */
}

/* --- BASE --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en menú */
}

h1, h2, h3 { color: var(--text-white); margin-top: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold-text { color: var(--gold); }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }

/* --- HEADER --- */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: 1px; }

.nav ul { display: flex; gap: 30px; }
.nav a:hover { color: var(--gold); }

/* --- BOTONES --- */
.btn-primary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); /* Resplandor dorado */
}

.btn-secondary {
    color: var(--text-white);
    border-bottom: 1px solid var(--text-white);
    margin-left: 20px;
}
.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }

/* --- HERO SECTION --- */
.hero {
    height: 90vh; /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Fondo oscuro con imagen sutil detrás */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072') center/cover;
    padding-top: 60px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero .subtitle { font-size: 1.2rem; color: var(--gold); margin-bottom: 20px; }

/* Hero pequeño para contacto */
.small-hero { height: auto; padding: 80px 0; background: var(--bg-dark-gray); }

/* --- SERVICIOS (TARJETAS) --- */
.section-dark { padding: 80px 0; background-color: var(--bg-black); }

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive automático */
    gap: 30px;
}

.card {
    background: var(--bg-dark-gray);
    padding: 40px 30px;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.card-icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold); /* Borde dorado al pasar el ratón */
}

/* --- IDIOMAS (GRID) --- */
.section-black { padding: 80px 0; background-color: #050505; }

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.lang-item {
    background: #1a1a1a;
    padding: 15px;
    text-align: center;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: default;
    transition: 0.3s;
}

.lang-item:hover {
    background: var(--gold);
    color: #000;
    font-weight: bold;
}

/* --- FORMULARIO --- */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: white;
    font-family: inherit;
    box-sizing: border-box; /* Importante para que no se salga del contenedor */
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.full-width { width: 100%; text-align: center; cursor: pointer; }

/* --- FOOTER --- */
.footer { padding: 50px 0 20px; background: #000; border-top: 1px solid #222; font-size: 0.9rem; color: var(--text-gray); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; }
.footer h4 { color: var(--text-white); margin-bottom: 15px; }

/* --- RESPONSIVE Y ANIMACIONES --- */
@media (max-width: 768px) {
    .header .container { flex-direction: column; }
    .nav ul { margin-top: 20px; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
}

/* Animación Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- ESTILOS AVANZADOS FORMULARIO PRESUPUESTO --- */

.form-container {
    background-color: var(--bg-dark-gray);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contact-form-advanced h3 {
    color: var(--gold);
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 1.2rem;
}

.contact-form-advanced h3:first-child { margin-top: 0; }

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

/* Estilos de Inputs y Selects */
.contact-form-advanced input, 
.contact-form-advanced select, 
.contact-form-advanced textarea {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Vital para que no se desborden */
}

.contact-form-advanced input:focus, 
.contact-form-advanced select:focus, 
.contact-form-advanced textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Zona de Carga de Archivos */
.file-upload-wrapper {
    text-align: center;
    border: 2px dashed #444;
    padding: 30px;
    border-radius: 8px;
    background: #111;
    transition: 0.3s;
}

.file-upload-wrapper:hover {
    border-color: var(--gold);
    background: #161616;
}

.btn-upload {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-upload:hover {
    background: var(--gold);
    color: #000;
}

.small-text {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* Lista dinámica de archivos */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    font-size: 0.9rem;
}

.file-remove {
    color: #ff4d4d;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.1rem;
}

.file-remove:hover { color: #ff0000; }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ccc;
}
.checkbox-group input { width: auto; }

/* Responsive para el formulario */
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* --- ESTILOS PÁGINA AVISO LEGAL --- */

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-dark-gray); /* Fondo gris tarjeta */
    padding: 60px;
    border-radius: 8px;
    border: 1px solid #333;
}

.legal-text-content {
    text-align: left; /* El texto legal se lee mejor alineado a la izquierda */
    color: #ccc;      /* Gris claro para no cansar la vista */
    font-size: 1rem;
}

.legal-text-content h3 {
    color: var(--gold);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-text-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-text-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-text-content strong {
    color: #fff;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
    }
}