/* --- Guardar en: /assets/css/style.css --- */

:root {
    --primary-color: #FFD700; 
    --secondary-color: #1a1a1a; 
    --accent-color: #004d99; 
    --text-color: #333;
    --light-bg: #f4f4f4;
    --footer-bg: #111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text-color); line-height: 1.6; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
header { background-color: var(--secondary-color); color: white; padding: 0 5%; position: fixed; width: 100%; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; height: 80px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.logo { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.logo span { color: var(--primary-color); }

/* Navegación */
nav ul { display: flex; gap: 0; }
nav ul li { position: relative; }
nav ul li a { display: block; padding: 0 20px; line-height: 80px; color: white; font-weight: 500; }
nav ul li a:hover { color: var(--primary-color); }

/* Menú Desplegable (Dropdown) */
.dropdown-menu { display: none; position: absolute; top: 80px; left: 0; background-color: #222; width: 250px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-top: 3px solid var(--primary-color); }
.dropdown-menu li { width: 100%; }
.dropdown-menu li a { line-height: 50px; padding-left: 20px; border-bottom: 1px solid #333; }
.dropdown-menu li a:hover { background-color: #333; padding-left: 25px; }
nav ul li:hover .dropdown-menu { display: block; }

/* Menú Hamburguesa */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: white; margin: 3px 0; transition: 0.4s; }

/* Animación del botón hamburguesa */
.menu-toggle.is-active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.btn-cta { background-color: var(--primary-color); color: var(--secondary-color); padding: 10px 20px; border-radius: 5px; font-weight: bold; }
.btn-cta:hover { transform: scale(1.05); background-color: #e6c200; }

/* --- HERO SLIDER --- */
.hero-slider { position: relative; height: 100vh; width: 100%; overflow: hidden; margin-top: 80px; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.slide.active { opacity: 1; }
.slide-content { position: relative; z-index: 2; }
.slide h1 { color: white; font-size: 3rem; margin-bottom: 20px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.slide h1 span { color: var(--primary-color); border-bottom: 4px solid var(--primary-color); }
.slide p { color: #ddd; font-size: 1.4rem; max-width: 800px; margin-bottom: 30px; }

/* --- SERVICIOS Y PANELES --- */
.services-summary { padding: 60px 5%; background-color: var(--light-bg); text-align: center; }
.grid-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.card-summary { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; transition: 0.3s; }
.card-summary:hover { transform: translateY(-5px); background: var(--primary-color); }
.card-summary:hover h3, .card-summary:hover i { color: var(--secondary-color); }
.card-summary i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }

/* Paneles Detallados (Para páginas internas) */
.detail-panel { padding: 120px 5% 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 50px; border-bottom: 1px solid #ddd; }
.panel-text { flex: 1; min-width: 300px; }
.panel-text h2 { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; border-left: 5px solid var(--primary-color); padding-left: 15px; }
.panel-img { flex: 1; min-width: 300px; }
.panel-img img { width: 100%; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-panel { display: inline-block; margin-top: 20px; padding: 12px 25px; background: var(--secondary-color); color: white; font-weight: bold; border-radius: 5px; }

/* --- FOOTER --- */
.gallery-section { padding: 80px 5%; background-color: #fff; }
footer { background-color: var(--footer-bg); color: #bbb; padding: 70px 5% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.ruc-box { background: rgba(255,255,255,0.1); padding: 10px; border-left: 3px solid var(--primary-color); color: white; font-weight: bold; margin-top: 15px; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 25px; margin-top: 40px; }
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 20px; right: 20px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; align-items: center; justify-content: center; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    header { justify-content: space-between; padding: 0 20px; }
    .menu-toggle { display: flex; z-index: 1001; }
    
    nav {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background-color: var(--secondary-color); flex-direction: column;
        transition: 0.3s ease-in-out; padding-top: 80px; z-index: 1000;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; width: 100%; }
    nav ul li { width: 100%; text-align: left; }
    nav ul li a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); line-height: normal; }
    
    .dropdown-menu { position: static; width: 100%; box-shadow: none; background-color: #111; display: none; }
    
    .btn-cta { display: none; }
    .hero-slider h1 { font-size: 2rem; }
}