/* =========================================================
   Ingeniería y Proyectos Colombia SAS — estilos
   Paleta: azul acero #1a365d + dorado industrial #e8a838
   Fuentes: Montserrat (títulos) + Open Sans (texto)
   ========================================================= */

:root {
    --navy: #1a365d;
    --navy-deep: #0f2440;
    --navy-darker: #0a1a30;
    --navy-light: #234876;
    --gold: #e8a838;
    --gold-dark: #cf9426;
    --gold-soft: #f4c766;
    --ink: #1a2333;
    --gray: #5a6678;
    --gray-light: #8a94a6;
    --line: #e2e7ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(15,36,64,.06);
    --shadow: 0 12px 34px rgba(15,36,64,.10);
    --shadow-lg: 0 24px 60px rgba(15,36,64,.18);
    --maxw: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.15; color: var(--navy); font-weight: 800; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* ---------- Encabezado de sección ---------- */
.section-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-tag {
    display: inline-block; font-family: 'Montserrat'; font-weight: 700;
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-dark); background: rgba(232,168,56,.12);
    padding: 6px 16px; border-radius: 40px; margin-bottom: 18px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section-header p { color: var(--gray); font-size: 1.06rem; }
.section-header.light .section-tag { color: var(--gold-soft); background: rgba(232,168,56,.18); }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,.82); }

.text-gradient {
    background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'Montserrat'; font-weight: 700; font-size: .96rem;
    padding: 14px 28px; border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,168,56,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn-full { width: 100%; padding: 16px; }

/* ---------- Navbar ---------- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all .3s var(--ease); background: transparent; padding: 18px 0; }
.navbar.scrolled { background: rgba(15,36,64,.97); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.nav-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon.logo-image { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: #fff; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.logo-icon.logo-image img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-main { font-family: 'Montserrat'; font-weight: 800; font-size: .92rem; color: #fff; letter-spacing: .02em; }
.logo-sub { font-family: 'Montserrat'; font-weight: 700; font-size: .78rem; color: var(--gold); letter-spacing: .28em; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link { font-family: 'Montserrat'; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.88); padding: 9px 15px; border-radius: 6px; transition: all .2s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta { background: var(--gold); color: var(--navy-deep) !important; margin-left: 8px; }
.nav-cta:hover { background: var(--gold-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%); z-index: 1; }
.hero-pattern { position: absolute; inset: 0; z-index: 2; opacity: .10; }
.hero-pattern svg { width: 100%; height: 100%; }
.hero-overlay { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at 75% 30%, rgba(232,168,56,.18), transparent 55%), linear-gradient(0deg, rgba(10,26,48,.5), transparent 40%); }
.hero-content { position: relative; z-index: 5; max-width: 860px; padding: 120px 24px 100px; margin: 0 auto; width: 100%; text-align: center; }
.hero-badge { display: inline-block; font-family: 'Montserrat'; font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--gold-soft); border: 1px solid rgba(232,168,56,.4); background: rgba(232,168,56,.08); padding: 8px 20px; border-radius: 40px; margin-bottom: 26px; }
.hero-content h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); color: #fff; font-weight: 900; margin-bottom: 22px; letter-spacing: -.01em; }
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 700px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5; }
.scroll-indicator { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-indicator span { width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Franja de autoridad ---------- */
.authority-strip { background: var(--gold); padding: 40px 0; }
.authority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.authority-item { text-align: center; color: var(--navy-deep); }
.authority-number, .authority-suffix { font-family: 'Montserrat'; font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; }
.authority-label { display: block; margin-top: 8px; font-family: 'Montserrat'; font-weight: 600; font-size: .9rem; color: rgba(15,36,64,.82); }

/* ---------- Servicios ---------- */
.section-servicios { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; transition: all .3s var(--ease); position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.service-icon svg { width: 34px; height: 34px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: .96rem; }

/* ---------- Qué construimos (fondo oscuro) ---------- */
.section-construimos { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%); position: relative; }
.items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.item-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 18px; text-align: center; color: #fff; transition: all .28s var(--ease); }
.item-card svg { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 14px; }
.item-card span { display: block; font-family: 'Montserrat'; font-weight: 600; font-size: .92rem; }
.item-card:hover { background: rgba(232,168,56,.12); border-color: var(--gold); transform: translateY(-4px); }
.modular-note { text-align: center; margin-top: 40px; color: rgba(255,255,255,.7); font-size: .96rem; }
.modular-note a { color: var(--gold-soft); font-weight: 600; border-bottom: 1px solid rgba(244,199,102,.4); }
.modular-note a:hover { color: #fff; }

/* ---------- Sectores ---------- */
.section-sectores { background: var(--bg-soft); }
.sectors-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sector-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 12px; text-align: center; transition: all .28s var(--ease); }
.sector-card svg { width: 40px; height: 40px; color: var(--navy); margin: 0 auto 12px; transition: color .25s; }
.sector-card span { display: block; font-family: 'Montserrat'; font-weight: 600; font-size: .84rem; color: var(--ink); }
.sector-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.sector-card:hover svg { color: var(--gold-dark); }

/* ---------- Nosotros / proceso (fondo oscuro) ---------- */
.section-nosotros { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.process-step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 34px 26px; position: relative; }
.process-number { font-family: 'Montserrat'; font-weight: 900; font-size: 2.4rem; color: rgba(232,168,56,.5); line-height: 1; }
.process-step h4 { color: #fff; font-size: 1.15rem; margin: 14px 0 10px; }
.process-step p { color: rgba(255,255,255,.75); font-size: .93rem; }

/* ---------- Portafolio ---------- */
.section-portafolio { background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-image { height: 190px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; align-items: center; justify-content: center; }
.project-image svg { width: 55%; height: auto; }
.project-info { padding: 24px; }
.project-category { display: inline-block; font-family: 'Montserrat'; font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); background: rgba(232,168,56,.12); padding: 4px 12px; border-radius: 30px; margin-bottom: 12px; }
.project-info h4 { font-size: 1.1rem; margin-bottom: 10px; }
.project-info p { color: var(--gray); font-size: .9rem; }
.project-info strong { color: var(--navy); }

/* ---------- FAQ ---------- */
.section-faq { background: var(--bg-soft); }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s; }
.faq-item.active { box-shadow: var(--shadow-sm); border-color: rgba(232,168,56,.4); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: none; border: none; cursor: pointer; text-align: left; font-family: 'Montserrat'; font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.faq-toggle { flex-shrink: 0; font-size: 1.6rem; font-weight: 400; color: var(--gold-dark); transition: transform .3s var(--ease); line-height: 1; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-answer p { padding: 0 24px 24px; color: var(--gray); font-size: .98rem; }

/* ---------- Contacto ---------- */
.section-contacto { background: var(--bg); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-panel { display: flex; flex-direction: column; gap: 18px; }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--gray); font-size: .92rem; line-height: 1.5; }
.contact-social { display: flex; gap: 12px; margin-top: 6px; }
.social-link { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: 'Montserrat'; font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
    font-family: 'Open Sans'; font-size: .95rem; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,.15); }
.form-group textarea { resize: vertical; }
.form-note { font-size: .85rem; color: var(--gray-light); margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-darker); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand p { font-size: .93rem; max-width: 340px; }
.footer-links h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links li { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .85rem; }
.footer-bottom a { color: var(--gold-soft); }

/* ---------- Reveal (mejora progresiva) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-on .reveal.visible { opacity: 1; transform: none; }

/* ---------- Toast de formulario ---------- */
.form-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--navy); color: #fff; padding: 14px 26px; border-radius: 10px; font-family: 'Montserrat'; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 2000; transition: transform .4s var(--ease); border-left: 4px solid var(--gold); }
.form-toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .items-grid { grid-template-columns: repeat(3, 1fr); }
    .sectors-grid { grid-template-columns: repeat(4, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 68px 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
        background: var(--navy-deep); flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 90px 28px 40px; gap: 6px; transition: right .35s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.3);
    }
    .nav-menu.active { right: 0; }
    .nav-link { padding: 14px 16px; font-size: 1rem; }
    .nav-cta { margin: 10px 0 0; text-align: center; }
    .authority-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .hero-content { padding-top: 130px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
}
@media (max-width: 560px) {
    .items-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .projects-grid, .process-grid, .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
}
