/* =============================================
   ARGROUP INGENIERÍA — Diseño moderno 2024
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

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

:root {
    --navy:    #414042;
    --navy2:   #2e2d2f;
    --orange:  #0097cd;
    --orange2: #0079a8;
    --gray:    #f4f6fa;
    --text:    #333;
    --muted:   #666;
    --white:   #fff;
    --border:  #dde3f0;
    --shadow:  0 4px 24px rgba(0,0,0,0.10);
    --radius:  6px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--gray);
    line-height: 1.7;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange2); }

img { max-width: 100%; display: block; }

/* ── TOPBAR ─────────────────────────────────── */
#topbar {
    background: var(--navy2);
    color: #9ab0d0;
    font-size: 12px;
    padding: 7px 0;
}
#topbar .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}
#topbar span { display: flex; align-items: center; gap: 6px; }
#topbar a { color: #9ab0d0; }
#topbar a:hover { color: var(--white); }
.topbar-icon { font-size: 13px; }

/* ── HEADER ─────────────────────────────────── */
#header {
    background: var(--navy);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
#header .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img {
    height: 90px;
    width: auto;
    max-width: 280px;
    flex-shrink: 0;
}
.logo-img--footer {
    height: 90px;
    opacity: 0.90;
}
.logo-icon {
    width: 48px; height: 48px;
    background: var(--orange);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
}
.logo-text span {
    font-size: 11px;
    color: #7a9ac8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── NAVEGACIÓN ─────────────────────────────── */
nav { display: flex; align-items: center; }
nav ul { list-style: none; display: flex; gap: 2px; }
nav ul li { position: relative; }

nav ul li a {
    display: block;
    color: #c5d5ee;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
nav ul li a:hover,
nav ul li.active > a {
    background: var(--orange);
    color: #fff;
}

/* Dropdown */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy2);
    min-width: 200px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    overflow: hidden;
    z-index: 300;
    padding-top: 4px;
}
nav ul li:hover > ul { display: flex; }
nav ul li ul li a {
    padding: 11px 18px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: #a0b8d8;
}
nav ul li ul li:last-child a { border-bottom: none; }
nav ul li ul li a:hover { background: var(--orange); color: #fff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ── HERO (solo homepage) ────────────────────── */
.hero {
    position: relative;
    height: 480px;
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1400&h=600&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,24,60,0.85) 0%, rgba(10,24,60,0.45) 100%);
}
.hero-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
    animation: fadeUp 0.7s ease both;
}
.hero-tag {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 600px;
}
.hero-content h2 span { color: var(--orange); }
.hero-content p {
    font-size: 16px;
    color: #c0d4f0;
    max-width: 520px;
    margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    background: var(--orange);
    color: #fff;
    padding: 13px 30px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: background var(--transition), transform var(--transition);
    display: inline-block;
}
.btn-primary:hover { background: var(--orange2); color: #fff; transform: translateY(-2px); }
.btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 11px 28px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: border-color var(--transition), background var(--transition);
    display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* ── BANNER DE SECCIÓN ───────────────────────── */
.page-banner {
    height: 220px;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,24,60,0.8) 0%, rgba(10,24,60,0.3) 100%);
}
.page-banner-text {
    position: relative;
    padding: 24px 36px;
    color: #fff;
}
.page-banner-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.page-banner-text .breadcrumb {
    font-size: 12px;
    color: #a0c0e8;
    margin-top: 4px;
}
.page-banner-text .breadcrumb a { color: #a0c0e8; }
.page-banner-text .breadcrumb a:hover { color: var(--orange); }

/* ── LAYOUT PRINCIPAL ───────────────────────── */
.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* ── TARJETAS DE SERVICIOS (HOME) ────────────── */
.services-intro {
    text-align: center;
    margin-bottom: 40px;
}
.services-intro h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.services-intro p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}
.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.service-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card-icon {
    font-size: 26px;
    margin-bottom: 10px;
}
.service-card-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.service-card-body p {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
}
.service-card-link {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-card-link::after { content: ' →'; }

/* ── BLOQUE EMPRESA (HOME) ───────────────────── */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 48px;
}
.about-block img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.about-text { padding: 36px 36px 36px 0; }
.section-label {
    display: inline-block;
    background: rgba(232,120,30,0.1);
    color: var(--orange);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.about-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.25;
}
.about-text p {
    color: var(--muted);
    margin-bottom: 14px;
    font-size: 14px;
}

/* Destacados numéricos */
.stats { display: flex; gap: 28px; margin-top: 24px; }
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── CONTENIDO DE PÁGINAS INTERNAS ──────────── */
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 44px;
    animation: fadeUp 0.5s ease both;
}
.content-card p {
    color: #555;
    margin-bottom: 16px;
    text-align: justify;
}
.content-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--orange);
}
.content-card ul {
    list-style: none;
    margin-bottom: 16px;
}
.content-card ul li {
    padding: 7px 0 7px 22px;
    position: relative;
    color: #555;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.content-card ul li:last-child { border-bottom: none; }
.content-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

/* ── RSE LINK ────────────────────────────────── */
.rse-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: var(--navy);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    transition: background var(--transition), transform var(--transition);
}
.rse-link:hover { background: var(--orange); transform: translateY(-2px); }

/* ── CLIENTES ────────────────────────────────── */
.clients-intro {
    margin-bottom: 32px;
    color: #555;
}

/* Logo wall – real logos from PDF */
.clients-logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.client-logo-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    min-height: 100px;
}
.client-logo-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    border-color: var(--orange);
    transform: translateY(-3px);
}
.client-logo-card img {
    max-width: 110px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.client-logo-card span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.3;
}

.clients-more-title {
    font-size: 16px;
    color: var(--navy);
    margin: 0 0 18px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Text-placeholder grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.client-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.client-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    border-color: var(--orange);
    transform: translateY(-3px);
}
.client-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 10px;
}
.client-item span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.3;
}
.client-item--logo {
    background: #fff;
}
.client-item--logo img {
    width: auto;
    height: 60px;
    max-width: 120px;
    border-radius: 4px;
}

/* ── CONTACTO ────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.contact-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.req { color: var(--orange); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fafbff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,52,104,0.10);
    background: #fff;
}
.form-group textarea { height: 130px; resize: vertical; }
.form-buttons { display: flex; gap: 12px; margin-top: 6px; }
.btn-send {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-send:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-cancel {
    background: #e0e4ee;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-cancel:hover { background: #cdd1df; }

.contact-info-card {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 32px 28px;
    color: #fff;
}
.contact-info-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.info-item-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.info-item-text { font-size: 14px; color: #a0b8d8; line-height: 1.5; }
.info-item-text strong { color: #fff; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; }
.info-item-text a { color: #a0b8d8; }
.info-item-text a:hover { color: var(--orange); }

/* Alertas */
.alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}
.alert-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* ── FOOTER ──────────────────────────────────── */
#footer {
    background: var(--navy2);
    color: #6a88b0;
    padding: 50px 0 0;
    margin-top: 60px;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand .logo-text h1 { font-size: 20px; margin-bottom: 6px; }
.footer-brand p {
    font-size: 13px;
    color: #5a78a0;
    margin-top: 14px;
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8aabcc;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
    font-size: 13px;
    color: #5a78a0;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-social a {
    color: #5a78a0;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition);
}
.footer-social a:hover { color: #e1306c; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 18px 24px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4a6080;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── COMPATIBILIDAD PHP PAGES ───────────────── */
#wrapper { background: var(--gray); }
#content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}
.section-banner {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.content-text { font-size: 15px; line-height: 1.8; color: var(--text); }
.content-text p { margin-bottom: 16px; }
.home-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}
.home-images img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.mt20 { margin-top: 20px; }
#footer { background: var(--navy2); color: #9ab0d0; padding: 28px 0; margin-top: 48px; }
#footer .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
#footer a { color: #9ab0d0; }
#footer a:hover { color: #fff; }
.footer-copy { font-size: 12px; }
.footer-contact { font-size: 12px; }

/* ── ANIMACIONES ─────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-block { grid-template-columns: 1fr; }
    .about-block img { height: 220px; }
    .about-text { padding: 28px; }
    .clients-logo-wall { grid-template-columns: repeat(4, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-card { padding: 28px 24px; }
    .hero { height: 380px; }
    .hero-content h2 { font-size: 30px; }
}

@media (max-width: 640px) {
    .hamburger { display: flex; }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy2); padding: 16px; flex-direction: column; align-items: flex-start; }
    nav.open { display: flex; }
    nav ul { flex-direction: column; width: 100%; gap: 4px; }
    nav ul li ul { position: static; box-shadow: none; background: rgba(0,0,0,0.2); margin-top: 4px; border-radius: var(--radius); }
    nav ul li:hover > ul { display: flex; }
    .services-grid { grid-template-columns: 1fr; }
    .clients-logo-wall { grid-template-columns: repeat(3, 1fr); }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { height: 300px; }
    .hero-content h2 { font-size: 24px; }
    .stats { gap: 16px; }
    #header .inner { position: relative; }
}
