:root {
    --primary: #002d5a; /* Azul Portuario ConsultMar */
    --secondary: #0056b3;
    --accent-blue: #0088cc;
    --light-bg: #f8fafc;
    --dark: #1a1c1e;
    --grey: #64748b;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

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

/* Header */
.main-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { height: 65px; width: auto; display: block; transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.02); }

.nav-links a { text-decoration: none; color: var(--dark); margin-left: 25px; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--accent-blue); }
.btn-contact { background: var(--primary); color: white !important; padding: 12px 24px; border-radius: 4px; }

/* Hero ConsultMar */
.hero-consultmar {
    background: linear-gradient(rgba(0, 45, 90, 0.8), rgba(0, 45, 90, 0.8)), url('https://images.unsplash.com/photo-1544211181-44754a65239e?auto=format&fit=crop&q=80&w=2070') center/cover;
    height: 75vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-consultmar h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 25px; line-height: 1.1; }
.hero-consultmar p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px auto; opacity: 0.9; }

.hero-btns { display: flex; justify-content: center; gap: 20px; }
.btn-large { display: inline-block; background: var(--accent-blue); color: white; padding: 18px 40px; border-radius: 4px; text-decoration: none; font-weight: 800; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.btn-outline-white { display: inline-block; border: 2px solid white; color: white; padding: 16px 40px; border-radius: 4px; text-decoration: none; font-weight: 800; transition: var(--transition); text-transform: uppercase; }
.btn-large:hover { background: var(--secondary); transform: translateY(-3px); }
.btn-outline-white:hover { background: white; color: var(--primary); }

/* Secciones */
section { padding: 90px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; color: var(--primary); font-weight: 800; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent-blue); }
.subtitle { display: block; text-align: center; color: var(--accent-blue); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; font-size: 0.9rem; }

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-text p { margin-bottom: 25px; color: var(--grey); font-size: 1.05rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-card { background: var(--light-bg); padding: 25px; border-bottom: 4px solid var(--accent-blue); text-align: center; }
.stat-card span { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }

/* Engineering Section */
.engineering-section { background: var(--dark); color: white; }
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.eng-item { border-left: 4px solid var(--accent-blue); padding-left: 25px; margin-bottom: 40px; }
.eng-item h3 { margin-bottom: 15px; color: var(--white); font-size: 1.4rem; }
.eng-item p { opacity: 0.8; font-size: 0.95rem; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.product-card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; transition: var(--transition); }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,45,90,0.1); border-color: var(--accent-blue); }
.product-info { padding: 35px; }
.product-info h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.5rem; }
.product-info ul { list-style: none; color: var(--grey); }
.product-info li { margin-bottom: 12px; position: relative; padding-left: 20px; }
.product-info li::before { content: "⚓"; position: absolute; left: 0; color: var(--accent-blue); }

/* Proyectos/Puertos */
.global-section { background: var(--light-bg); }
.ports-list { columns: 2; column-gap: 50px; }
.ports-list li { margin-bottom: 15px; font-weight: 600; color: var(--primary); list-style: none; display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.ports-list li::before { content: "3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent-blue); }

/* CTA */
.cta-box { background: var(--primary); color: white; padding: 80px 40px; border-radius: 12px; text-align: center; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 25px; }
.cta-box p { font-size: 1.2rem; opacity: 0.9; }

/* Footer */
.footer { text-align: center; padding: 50px; background: #0f172a; color: var(--white); font-size: 0.9rem; border-top: 5px solid var(--accent-blue); }
.footer p { margin-bottom: 10px; opacity: 0.7; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .eng-grid { grid-template-columns: 1fr; }
    .hero-consultmar h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-btns { flex-direction: column; }
    .ports-list { columns: 1; }
    .section-title { font-size: 2rem; }
}