:root {
    --primary: #e67e22;
    --secondary: #1a1a1a;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --shadow: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.4s ease;
}

/* RESET GENERAL */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { overflow-x: hidden; width: 100%; background: var(--white); }

/* TOP BAR */
.top-bar { background: var(--secondary); color: white; padding: 10px 8%; font-size: 13px; }
.top-content { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; }

/* NAV - LOGO IMAGEN */
nav { 
    background: white; padding: 10px 8%; display: flex; 
    justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 1000; height: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.logo-container { height: 100%; display: flex; align-items: center; }
.nav-logo { max-height: 70px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--secondary); text-decoration: none; }
.btn-nav { background: var(--primary); color: white !important; padding: 10px 20px; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); transition: 0.3s; }
.menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--secondary); }

/* HERO */
.hero { height: 80vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/header_1.jpg') center/cover; display: flex; align-items: center; padding: 0 8%; color: white; }
.hero h1 { font-size: clamp(35px, 6vw, 65px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 600px; margin-bottom: 30px; opacity: 0.9; }
.hero-button { background: var(--primary); color: white; padding: 18px 40px; font-weight: 700; text-transform: uppercase; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); transition: 0.3s; display: inline-block; text-decoration: none; }

/* SECCIONES COMUNES */
.subtitle { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 15px; display: block; }
h2 { font-size: 32px; color: var(--secondary); margin-bottom: 25px; font-weight: 700; }
.highlight-text { color: var(--primary); }

.about-section { padding: 80px 8%; }
.about-flex { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text, .about-img { flex: 1; min-width: 320px; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

.mv-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.mv-box { background: var(--bg-light); padding: 25px; border-radius: 15px; border-left: 5px solid var(--primary); }
.mv-box i { font-size: 28px; color: var(--primary); margin-bottom: 15px; display: block; }

/* SERVICIOS */
.services-section { padding: 80px 8%; background: var(--bg-light); text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.service-card { background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); transition: 0.3s; }
.icon-main { font-size: 45px; color: var(--primary); margin-bottom: 20px; display: block; }

/* PROYECTOS */
.projects-section { padding: 80px 8%; text-align: center; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.project-card { height: 350px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.project-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; }
.project-card:hover .project-img { transform: scale(1.1); }
.project-overlay { position: absolute; bottom: 0; width: 100%; padding: 25px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; text-align: left; }

/* CTA */
.cta-banner { background: var(--primary); color: white; padding: 80px 8%; text-align: center; }
.cta-content h2 { color: white; margin-bottom: 15px; }
.cta-button { background: var(--secondary); color: white; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-transform: uppercase; display: inline-block; margin-top: 20px; text-decoration: none; }

/* ESTÁNDAR MAREC - SPLIT VIEW */
.standard-marec { background: var(--secondary); color: white; width: 100%; overflow: hidden; }
.standard-flex { display: flex; flex-wrap: wrap; min-height: 550px; align-items: stretch; }
.standard-image { flex: 1; min-width: 450px; background: url('../img/img4.jpg') center/cover; position: relative; }
.standard-text { flex: 1; padding: 80px 8%; min-width: 350px; align-self: center; }


}
.seal-inner { text-align: center; color: white; font-size: 10px; }
.seal-inner strong { display: block; font-size: 18px; color: var(--primary); }

.val-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; }
.val-item i { color: var(--primary); font-size: 22px; }

/* CONTACTO - RESTAURADO SIDE-BY-SIDE */
.contact-section { padding: 100px 8%; background: var(--bg-light); }
.contact-container { 
    display: flex; /* Cambiado a flex para control manual */
    gap: 50px; max-width: 1200px; margin: 0 auto; align-items: flex-start;
}
.form-wrapper { flex: 1.3; background: white; padding: 50px; border-radius: 25px; box-shadow: var(--shadow); }
.contact-info-panel { flex: 0.7; padding-top: 20px; }

.input-group { position: relative; margin-bottom: 35px; }
.input-group input, .input-group textarea { width: 100%; padding: 10px 0; border: none; border-bottom: 2px solid #ddd; outline: none; background: transparent; font-size: 16px; }
.input-group label { position: absolute; left: 0; top: 10px; color: #aaa; transition: 0.3s; pointer-events: none; }
.input-group input:focus ~ label, .input-group input:valid ~ label, .input-group textarea:focus ~ label, .input-group textarea:valid ~ label { top: -20px; font-size: 12px; color: var(--primary); font-weight: 700; }
.submit-btn { width: 100%; padding: 18px; background: var(--secondary); color: white; border: none; border-radius: 10px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--primary); }

.info-link { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; font-size: 16px; color: var(--secondary); }
.info-link i { color: var(--primary); font-size: 20px; }

footer { background: #000; color: #666; padding: 40px; text-align: center; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .contact-container { flex-direction: column; }
    .form-wrapper, .contact-info-panel { width: 100%; flex: none; }
    .standard-image { min-width: 100%; min-height: 350px; }
}

@media (max-width: 768px) {
    nav { height: 80px; padding: 0 5%; }
    .nav-logo { max-height: 55px; }
    .menu-btn { display: block; }
    .nav-links { 
        position: fixed; top: 80px; right: -100%; width: 100%; 
        height: calc(100vh - 80px); background: white; 
        flex-direction: column; padding: 40px; transition: 0.4s; z-index: 1001; 
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; width: 100%; text-align: center; }
    .hide-mobile { display: none; }
    .about-section, .services-section, .projects-section, .contact-section { padding: 60px 5%; }
}