/* =========================================
   1. VARIABLES Y TEMAS
   ========================================= */
:root {
    --primary-color: #e69500; 
    --primary-hover: #c57d00;
    
    /* Variables MODO OSCURO */
    --main-bg: #111111;       
    --section-bg: #0a0a0a;    
    --component-bg: #1a1a1a;  
    --text-dark: #f4f4f4;     
    --text-muted: #aaaaaa;    
    --border-color: #333333;  
    
    /* Variables para formulario */
    --input-bg: #333333;
    --input-text: #ffffff;
    
    /* Variables fijas */
    --dark-fixed: #111111;
    --text-light-fixed: #fff;
}

body.light-mode {
    /* Variables MODO CLARO */
    --main-bg: #ffffff;       
    --section-bg: #f4f4f4;    
    --component-bg: #ffffff;  
    --text-dark: #333333;     
    --text-muted: #666666;    
    --border-color: #e0e0e0;
    
    /* Formulario claro */
    --input-bg: #f0f0f0;
    --input-text: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; line-height: 1.6; background-color: var(--main-bg); color: var(--text-dark); transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAVEGACIÓN */
.navbar { background: var(--main-bg); height: 110px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; transition: background-color 0.3s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 90px; width: auto; display: block; transition: height 0.3s; }
.nav-right { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 35px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 700; transition: 0.3s; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--primary-color); }
.btn-contact { background: var(--primary-color); color: var(--text-light-fixed) !important; padding: 12px 25px; border-radius: 5px; font-size: 1.2rem; }
.btn-contact:hover { background: var(--primary-hover); }
.nav-right button { background: none; border: none; color: var(--text-dark); font-size: 1.3rem; cursor: pointer; margin-left: 20px; padding: 5px; transition: color 0.3s, transform 0.2s; display: flex; align-items: center; gap: 8px; font-family: 'Roboto', sans-serif; font-weight: bold; }
.nav-right button:hover { color: var(--primary-color); transform: scale(1.1); }

/* HERO - FONDO LOCAL POR DEFECTO */
.hero { 
    height: 90vh; 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('fondo-1.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--text-light-fixed); 
    position: relative; 
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 30px auto; }
.text-orange { color: var(--primary-color); }
.btn-main { display: inline-block; background: var(--primary-color); color: var(--text-light-fixed); padding: 15px 40px; border: none; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-main:hover { background: var(--primary-hover); transform: scale(1.05); }

/* SERVICIOS */
.services { padding: 80px 0; background: var(--section-bg); text-align: center; transition: background-color 0.3s; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; text-transform: uppercase; font-weight: 700; color: var(--text-dark); }
.section-subtitle { margin-bottom: 60px; color: var(--text-muted); font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--component-bg); padding: 40px 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: all 0.3s; border-bottom: 4px solid transparent; text-align: left; }
.service-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--primary-color); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.service-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; display: block; text-align: center; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-dark); text-align: center; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.service-card ul li { margin-bottom: 8px; color: var(--text-muted); }

/* CONTACTO (DINÁMICO) */
.contact { 
    padding: 80px 0; 
    background-color: var(--main-bg); 
    color: var(--text-dark); 
    transition: background-color 0.3s, color 0.3s;
}
.contact-form { 
    background: var(--component-bg); 
    padding: 30px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    transition: background-color 0.3s;
}
.contact-form label { display: block; margin-bottom: 8px; color: var(--text-dark); }
.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 20px; 
    background: var(--input-bg); 
    color: var(--input-text); 
    border: 1px solid var(--border-color); 
    border-radius: 5px; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: background-color 0.3s, border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
}
.map-container iframe { width: 100%; display: block; }

/* HORARIO COMERCIAL (COMPACTO Y ENCIMA DE MAPA) */
.business-hours {
    margin-bottom: 25px; /* Espacio para separar del mapa */
    padding: 15px;
    background-color: var(--component-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}
.business-hours p {
    color: var(--text-dark);
}

/* FOOTER (DINÁMICO) */
footer { 
    background: var(--section-bg); 
    color: var(--text-muted); 
    text-align: center; 
    padding: 30px 0; 
    font-size: 0.9rem; 
    border-top: 1px solid var(--border-color); 
    transition: background-color 0.3s, color 0.3s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { display: grid !important; grid-template-columns: 1fr auto auto !important; grid-template-rows: auto auto !important; width: 100%; align-items: center; padding: 10px 0; gap: 15px 0; }
    .logo { grid-row: 1; grid-column: 1; justify-self: start; }
    .logo img { height: 50px; margin-bottom: 0; }
    .nav-right { display: contents !important; }
    #theme-toggle { grid-row: 1; grid-column: 2; margin: 0 15px 0 0; }
    #lang-toggle { grid-row: 1; grid-column: 3; margin: 0; }
    .nav-right button { font-size: 1.3rem; display: flex; align-items: center; }
    .nav-links { grid-row: 2; grid-column: 1 / -1; display: flex !important; justify-content: center; gap: 25px; width: 100%; margin: 0 !important; padding-top: 15px; border-top: 1px solid var(--border-color); }
    .nav-links li { margin: 0 !important; }
    .nav-links a { font-size: 0.95rem; font-weight: bold; }
    .btn-contact { padding: 8px 15px; font-size: 0.95rem; }
    .navbar { height: auto; }
    .hero-content h1 { font-size: 2rem; margin-top: 20px; }
    .services-grid { grid-template-columns: 1fr; }
}