/* --- Variables y Reset --- */
:root {
    --orange: #FF6600;
    --blue: #0A2342;
    --dark-blue: #05152a;
    --light-gray: #f4f6f8;
    --white: #ffffff;
    --text: #333;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--blue); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.mx-auto { margin: 0 auto; }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--blue); color: var(--white); }
.bg-dark h2, .bg-dark p { color: var(--white); }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.line { width: 80px; height: 4px; background: var(--orange); margin: 15px 0 25px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* --- PRELOADER --- */
.preloader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.preloader-hidden { opacity: 0; visibility: hidden; }
.logo-loader { width: 150px; margin-bottom: 20px; }
.progress-bar { width: 200px; height: 5px; background: #eee; margin: 0 auto; overflow: hidden; border-radius: 3px; }
.progress-bar::before { content: ''; display: block; width: 50%; height: 100%; background: var(--orange); animation: load 1.5s infinite ease-in-out; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* --- HEADER SUPERIOR --- */
.top-bar { background: var(--blue); color: #fff; padding: 10px 0; font-size: 0.9rem; }
.top-bar-content { display: flex; justify-content: space-between; flex-wrap: wrap; }
.tb-left span, .tb-right a { margin: 0 10px; }
.tb-left i, .tb-right i { color: var(--orange); margin-right: 5px; }

/* --- NAVEGACIÓN (Navbar) --- */
.navbar { background: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 60px; width: auto; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; color: var(--blue); }
.logo-text span { color: var(--orange); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; color: var(--blue); }
.nav-links a:hover { color: var(--orange); }
.btn-cta { background: var(--orange); color: #fff !important; padding: 10px 25px; border-radius: 5px; }
.btn-cta:hover { background: var(--blue); }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--blue); margin: 5px; transition: 0.3s; }

/* --- HERO SLIDER --- */
header { height: 90vh; position: relative; overflow: hidden; }
.slider-container { height: 100%; width: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 35, 66, 0.6); }
.content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; }
.badge { background: var(--orange); padding: 5px 15px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; border-radius: 3px; }
.content h1 { font-size: 3.5rem; color: #fff; margin: 20px 0; text-transform: uppercase; }
.content p { font-size: 1.5rem; margin-bottom: 30px; }
.btn-hero { border: 2px solid #fff; color: #fff; padding: 12px 30px; font-weight: bold; text-transform: uppercase; }
.btn-hero:hover { background: var(--orange); border-color: var(--orange); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: #fff; border: none; padding: 15px; cursor: pointer; z-index: 10; font-size: 1.5rem; border-radius: 50%; }
.slider-btn:hover { background: var(--orange); }
#prev { left: 20px; } #next { right: 20px; }

/* --- SECCIONES (Historia, Intercalado) --- */
.about-img img { border-radius: 10px; border-bottom: 5px solid var(--orange); width: 100%; height: auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { padding: 30px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); }
.feature-card i { font-size: 2.5rem; color: var(--orange); margin-bottom: 20px; }

.check-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; }
.check-list i { color: var(--orange); margin-right: 15px; font-size: 1.2rem; }

/* --- SERVICIOS (Cards) --- */
.section-header { text-align: center; margin-bottom: 50px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: #fff; border-radius: 10px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); }
.card-img img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card-body p { color: #666; margin-bottom: 20px; flex: 1; }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.btn-card { flex: 1; padding: 10px; text-align: center; border-radius: 5px; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-card.whatsapp { background: #25D366; color: #fff; }
.btn-card.whatsapp:hover { background: #1ebc57; }
.btn-card.call { background: var(--blue); color: #fff; }
.btn-card.call:hover { background: var(--orange); }

/* --- GALERÍA & MAPA --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 5px; transition: 0.3s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.05); }
.city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.city-list li::before { content: '•'; color: var(--orange); margin-right: 8px; font-weight: bold; }
.map-container { height: 400px; border-radius: 10px; overflow: hidden; }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 5px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.faq-question { padding: 20px; cursor: pointer; font-weight: 700; color: var(--blue); display: flex; justify-content: space-between; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; background: #f9f9f9; padding: 0 20px; }
.faq-answer p { padding: 20px 0; color: #555; }
.faq-item.active .faq-question i { transform: rotate(45deg); color: var(--orange); }
.faq-item.active .faq-answer { max-height: 200px; }

/* --- FOOTER CON IMAGEN OPACA --- */
footer { position: relative; background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; background-attachment: fixed; color: #ddd; padding-top: 80px; }
.footer-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 35, 66, 0.95); z-index: 1; }
.footer-content { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; border-left: 4px solid var(--orange); padding-left: 10px; }
.footer-col p { margin-bottom: 10px; }
.footer-col a:hover { color: var(--orange); }
.socials a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); justify-content: center; align-items: center; border-radius: 50%; margin-right: 10px; color: #fff; }
.socials a:hover { background: var(--orange); }
.copyright { position: relative; z-index: 2; text-align: center; padding: 20px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.1); }

/* --- BOTONES FLOTANTES --- */
.floating-wrapper { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: 0.3s; }
.float-btn:hover { transform: scale(1.1); }
.whatsapp { background: #25D366; }
.phone { background: var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 102, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); } }

/* --- RESPONSIVE MOBILE --- */
@media(max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .reversed .about-text { order: 1; } .reversed .about-img { order: 2; }
}

@media(max-width: 768px) {
    .desktop-only { display: none; }
    .top-bar-content { justify-content: center; text-align: center; gap: 5px; }
    .tb-right { width: 100%; text-align: center; }
    
    /* Menú Móvil */
    .nav-links { position: fixed; right: 0; height: 100vh; top: 0; background: #fff; flex-direction: column; align-items: center; width: 80%; transform: translateX(100%); transition: 0.4s; padding-top: 100px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; z-index: 1001; }
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .content h1 { font-size: 2rem; }
    .card-actions { flex-direction: column; }
}