/* 
    HYDROINGENIERIA OMD S.A.S. - PREMIUM STYLESHEET
    Designed by ID-AZ PUBLICITARIAS SAS
*/

:root {
    --primary-dark: #1f57a2;
    --primary-light: #0699de;
    --accent-orange: #f3703a;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; color: var(--text-dark); line-height: 1.6; background: #fff; }
h1, h2, h3, h4, h5, .menu-list li a { font-family: 'Playfair Display', serif; text-transform: uppercase; letter-spacing: 1px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* Preloader */
#preloader {
    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.6s ease;
}
.loader-content { text-align: center; }
.preloader-flame { width: 90px; margin-bottom: 25px; animation: flamePulse 2s infinite ease-in-out; }
.loader-bar { width: 150px; height: 3px; background: #f0f0f0; position: relative; overflow: hidden; border-radius: 10px; }
.loader-bar::after {
    content: ''; position: absolute; left: -100%; width: 100%; height: 100%;
    background: var(--accent-orange); animation: loading 2s infinite;
}
@keyframes flamePulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.15); filter: brightness(1.2); } }
@keyframes loading { 0% { left: -100%; } 100% { left: 100%; } }

/* Header */
.main-header {
    background: rgba(255,255,255,0.98); padding: 10px 0; position: sticky; top: 0;
    z-index: 1000; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.main-logo { height: 150px; width: auto; transition: var(--transition); } /* Logo más grande */
.main-logo:hover { transform: scale(1.05); }

.menu-list { display: flex; list-style: none; align-items: center; }
.menu-list li { margin-left: 35px; }
.menu-list li a {
    text-decoration: none; color: var(--primary-dark); font-weight: 700;
    font-size: 0.9rem; transition: var(--transition); position: relative;
}
.menu-list li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent-orange); transition: var(--transition);
}
.menu-list li a:hover::after { width: 100%; }
.menu-list li a:hover { color: var(--accent-orange); }

.nav-cta {
    background: var(--accent-orange); color: #fff !important; padding: 12px 25px;
    border-radius: 4px; box-shadow: 0 4px 10px rgba(243, 112, 58, 0.3);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(31, 87, 162, 0.4); }

/* Hero Slider */
.hero-section { position: relative; height: 90vh; min-height: 600px; overflow: hidden; background: #000; }
.slider-wrapper { height: 100%; width: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 1.2s ease-in-out; }
.slide.active { opacity: 1; visibility: visible; }
.slide-img-container { width: 100%; height: 100%; }
.slide-img-container img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 6s linear; }
.slide.active .slide-img-container img { transform: scale(1); }

.slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.3) 60%, transparent);
    display: flex; align-items: center; color: #fff; z-index: 2;
}
.slide-text h1 { font-size: 4.5rem; margin-bottom: 25px; max-width: 800px; line-height: 1.05; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.slide-text p { font-size: 1.4rem; margin-bottom: 40px; max-width: 650px; font-weight: 300; opacity: 0.9; }

.hero-btns .btn { margin-right: 20px; }

.slider-controls button {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
    transition: var(--transition); backdrop-filter: blur(5px);
}
.slider-controls button:hover { background: var(--accent-orange); border-color: var(--accent-orange); }
.prev-slide { left: 30px; }
.next-slide { right: 30px; }

.slider-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; }
.indicator { width: 40px; height: 4px; background: rgba(255,255,255,0.3); margin: 0 5px; cursor: pointer; border-radius: 2px; transition: var(--transition); }
.indicator.active { background: var(--accent-orange); width: 60px; }

/* Stats Bar */
.stats-bar { background: var(--primary-dark); padding: 50px 0; color: #fff; position: relative; z-index: 5; margin-top: -30px; border-radius: 15px 15px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-card:last-child { border-right: none; }
.stat-number { display: block; font-size: 3.5rem; font-weight: 700; color: var(--accent-orange); margin-bottom: 5px; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; }

/* About Section */
.about-section { background: #fff; padding: 100px 0; }
.section-title { font-size: 2.8rem; color: var(--primary-dark); margin-bottom: 15px; }
.title-underline { width: 80px; height: 5px; background: var(--accent-orange); margin: 0 auto 35px; border-radius: 10px; }
.section-subtitle { max-width: 800px; margin: 0 auto; font-size: 1.15rem; color: var(--text-muted); }

/* Fichas Misión/Visión */
.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.mv-card {
    display: flex; flex-direction: column; padding: 50px; border-radius: 24px;
    transition: var(--transition); box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.mission-card { background: linear-gradient(145deg, var(--primary-dark), #16407a); color: #fff; }
.vision-card { background: #fff; border: 1px solid #e2e8f0; color: var(--primary-dark); }
.vision-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--primary-dark); }
.mission-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--accent-orange); }

.mv-icon { width: 70px; margin-bottom: 30px; }
.mv-icon img { width: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
.mv-card h3 { font-size: 1.8rem; margin-bottom: 20px; }
.mv-card p { font-size: 1.05rem; line-height: 1.7; opacity: 0.9; }
.mv-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

/* Normative Banner */
.normative-banner { background: var(--accent-orange); padding: 60px 0; border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; }
.normative-flex { display: flex; justify-content: space-between; align-items: center; }
.normative-text { font-size: 1.4rem; font-weight: 700; color: #fff; }
.normative-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.tag { background: #fff; padding: 10px 20px; border-radius: 8px; margin: 5px; font-weight: 700; color: #718096; box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; }

/* Services Grid */
.services-section { padding: 100px 0; background: #fff; }
.services-modern-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 50px; }
.modern-service-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.card-image { height: 350px; overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.modern-service-card:hover .card-image img { transform: scale(1.1); }
.card-badge { position: absolute; top: 20px; left: 20px; background: var(--accent-orange); color: #fff; padding: 6px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; z-index: 2; }

.card-body { padding: 40px; flex-grow: 1; }
.card-body h3 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 25px; line-height: 1.3; }
.modern-list { list-style: none; }
.modern-list li { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 0.95rem; color: var(--text-muted); }
.bullet { width: 20px; height: 20px; margin-right: 12px; margin-top: 2px; flex-shrink: 0; }

/* FAQ */
.faq-section { background: var(--bg-light); padding: 100px 0; }
.faq-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.accordion-item { background: #fff; margin-bottom: 20px; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid #edf2f7; }
.accordion-header { width: 100%; padding: 25px; background: none; border: none; text-align: left; font-weight: 700; color: var(--primary-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.1rem; }
.accordion-header i { transition: transform 0.3s; font-size: 0.9rem; }
.accordion-item.active .accordion-header i { transform: rotate(45deg); color: var(--accent-orange); }
.accordion-body { padding: 0 25px 25px; display: none; color: var(--text-muted); font-size: 1rem; border-top: 1px solid #f7fafc; padding-top: 15px; }
.accordion-item.active .accordion-body { display: block; }

/* Contact Section */
.contact-section { background: #fff; padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.expert-card { display: flex; background: var(--bg-light); padding: 35px; border-radius: 20px; margin-bottom: 25px; border: 1px solid #edf2f7; transition: var(--transition); }
.expert-card:hover { background: #fff; box-shadow: var(--shadow-md); border-color: var(--accent-orange); }
.expert-icon { font-size: 2.5rem; color: var(--accent-orange); margin-right: 30px; }
.expert-details h5 { color: var(--accent-orange); font-size: 1.2rem; margin-bottom: 8px; }
.expert-details span { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.expert-details a { display: block; text-decoration: none; color: var(--primary-dark); font-weight: 700; font-size: 1rem; margin-bottom: 5px; }

/* Form Header */
.form-header { margin-bottom: 30px; }
.form-header h3 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 10px; }
.form-header p { color: var(--text-muted); font-size: 1rem; }

.modern-form { background: #fff; padding: 50px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 1px solid #f1f5f9; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.modern-form input, .modern-form textarea { width: 100%; padding: 18px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px; margin-bottom: 25px; font-family: inherit; transition: var(--transition); }
.modern-form input:focus, .modern-form textarea:focus { outline: none; border-color: var(--accent-orange); background: #fff; box-shadow: 0 0 0 4px rgba(243, 112, 58, 0.1); }
.btn-full { width: 100%; font-size: 1.1rem; padding: 20px; border: none; cursor: pointer; }

/* Botones */
.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: var(--transition); }
.btn-primary { background: var(--accent-orange); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline:hover { background: #fff; color: var(--primary-dark); transform: translateY(-3px); }

/* Widgets */
.floating-widgets { position: fixed; bottom: 40px; right: 40px; z-index: 1000; }
.wa-btn { width: 70px; height: 70px; background: #25d366; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; text-decoration: none; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); transition: var(--transition); }
.wa-btn:hover { transform: scale(1.1) rotate(10deg); }

.social-sidebar { position: fixed; left: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; z-index: 100; }
.social-sidebar a { width: 50px; height: 50px; background: var(--primary-dark); color: #fff; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; border-radius: 12px; text-decoration: none; transition: var(--transition); font-size: 1.3rem; }
.social-sidebar a:hover { background: var(--accent-orange); transform: translateX(10px); }

/* Footer */
.main-footer {
    background: #003580 !important;
    padding: 60px 0 40px;
    color: #ffffff !important;
    text-align: center;
}
.main-footer p, .main-footer a { color: #ffffff !important; text-decoration: none; }
.main-footer .credits { margin-top: 15px; opacity: 0.8; }
.main-footer .footer-legal { margin-top: 10px; font-size: 0.85rem; }
.main-footer .footer-legal a { color: #fff; opacity: 0.8; text-decoration: underline; margin: 0 5px; }
.main-footer .footer-legal a:hover { opacity: 1; }

/* Mobile Navigation */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.bar { display: block; width: 30px; height: 3px; background: var(--primary-dark); margin: 6px 0; border-radius: 10px; transition: 0.4s; }

.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-dark); z-index: 999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-menu-list { list-style: none; text-align: center; }
.mobile-menu-list li { margin: 30px 0; }
.mobile-menu-list li a { color: #fff; font-size: 2.5rem; text-decoration: none; font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
    .slide-text h1 { font-size: 3.5rem; }
    .faq-wrapper, .contact-grid, .mv-cards { grid-template-columns: 1fr; gap: 40px; }
    .normative-flex { flex-direction: column; text-align: center; }
    .normative-tags { justify-content: center; margin-top: 20px; }
    .services-modern-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-desktop { display: none; }
    .services-modern-grid { grid-template-columns: 1fr; }
    .input-row { grid-template-columns: 1fr; gap: 0; }
    .slide-text h1 { font-size: 2rem; line-height: 1.2; max-width: 90%; padding-right: 10px; }
    .slide-text p { font-size: 1rem; max-width: 90%; padding-right: 10px; margin-bottom: 25px; }
    .section-title { font-size: 2.2rem; }
    .social-sidebar { display: none; }
    .main-logo { height: 100px; }

    /* Slider móvil: flechas más pequeñas y abajo */
    .hero-section { height: 70vh; min-height: 400px; }
    .slider-controls button { width: 40px; height: 40px; font-size: 0.8rem; bottom: 90px; top: auto; transform: none; }
    .prev-slide { left: 50%; transform: translateX(-60px); }
    .next-slide { right: auto; left: 50%; transform: translateX(20px); }
    .slider-indicators { bottom: 25px; }
    .indicator { width: 25px; }
    .indicator.active { width: 35px; }

    /* Banner normativo móvil */
    .normative-text { font-size: 1.1rem; margin-bottom: 15px; }

    /* Cards de servicios - texto no cortado */
    .card-body h3 { font-size: 1.1rem; }
    .modern-list li { font-size: 0.85rem; }

    /* Expert cards móvil */
    .expert-card { flex-direction: column; }
    .expert-icon { margin-right: 0; margin-bottom: 10px; }
}
