/* ========================================
   BRUNA PERU - DIVISION MINERIA
   Brand System: Matches brunagroup.com
   Primary: #0D47A1 (Bruna Indigo)
   Dark: #333333
   Font: Roboto / Archivo Black
   ======================================== */

:root {
    --primary: #0D47A1;
    --primary-dark: #08306b;
    --primary-light: #1565C0;
    --primary-lighter: #E3F2FD;
    --dark: #333333;
    --dark-light: #555555;
    --gray: #777777;
    --gray-light: #f5f6f8;
    --gray-mid: #e8e8e8;
    --white: #ffffff;
    --accent: #FF6F00;
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container: 1200px;
    --radius: 4px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: #fff; }
.top-bar .separator { margin: 0 12px; opacity: 0.3; }
.top-bar .active-link { color: var(--white); font-weight: 700; text-transform: uppercase; }

/* ========================================
   HEADER / NAV
   ======================================== */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo-area { display: flex; align-items: center; }
.logo-text { display: flex; align-items: center; gap: 12px; }
.logo-bruna {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}
.logo-divider {
    width: 2px;
    height: 28px;
    background: var(--primary);
    opacity: 0.3;
}
.logo-division {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav a {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    padding: 8px 14px;
    border-radius: var(--radius);
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.nav-cta {
    background: var(--primary);
    color: var(--white);
}
.main-nav a.nav-cta:hover { background: var(--primary-dark); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 900px;
    overflow: hidden;
}
.hero-slides { width: 100%; height: 100%; position: relative; }
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(13,71,161,0.85) 0%, rgba(8,48,107,0.7) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 720px;
}
.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0.85;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.hero-text {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; }
.hero-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.indicator {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}
.indicator.active {
    background: var(--white);
    border-color: var(--white);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-lg { padding: 16px 40px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    background: var(--primary);
    padding: 40px 0;
}
.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-item { text-align: center; color: var(--white); }
.trust-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 6px;
}
.trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    line-height: 1.4;
}
.trust-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.2);
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header.light { color: var(--white); }
.section-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-header.light .section-subtitle { color: rgba(255,255,255,0.7); }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-header.light .section-title { color: var(--white); }
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 20px;
}
.section-header.light .section-divider { background: rgba(255,255,255,0.4); }
.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}
.section-header.light .section-description { color: rgba(255,255,255,0.75); }

/* ========================================
   ABOUT
   ======================================== */
.section-about { background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-text p { margin-bottom: 16px; color: var(--dark-light); }
.about-highlights { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.highlight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: var(--primary);
}
.highlight-icon svg { width: 100%; height: 100%; }
.highlight strong { display: block; color: var(--dark); font-size: 0.9rem; }
.highlight span { font-size: 0.85rem; color: var(--gray); }

.about-image { position: relative; }
.about-img-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: block;
}
.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    line-height: 1.4;
}

/* ========================================
   PRODUCTS
   ======================================== */
.section-products { background: var(--gray-light); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 16px;
}
.product-tag {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
}
.product-content { padding: 24px; }
.product-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.product-content p {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}
.product-list {
    margin-bottom: 16px;
    padding-left: 0;
}
.product-list li {
    font-size: 0.82rem;
    color: var(--dark-light);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}
.product-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.product-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-link:hover { color: var(--primary-dark); }

.products-note {
    margin-top: 40px;
    padding: 24px;
    background: var(--primary-lighter);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
}
.products-note p {
    font-size: 0.9rem;
    color: var(--dark-light);
    margin: 0;
}

/* ========================================
   SERVICES
   ======================================== */
.section-services {
    background: var(--primary);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 32px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.service-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}
.service-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 12px;
}
.service-card h3 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.service-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ========================================
   WHY BRUNA
   ======================================== */
.section-why { background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.why-card {
    text-align: center;
    padding: 32px 24px;
}
.why-icon {
    width: 56px;
    height: 56px;
    color: var(--primary);
    margin: 0 auto 20px;
}
.why-icon svg { width: 100%; height: 100%; }
.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.why-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   DOCUMENTATION
   ======================================== */
.section-docs { background: var(--gray-light); }
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.doc-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
}
.doc-icon {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 6px 14px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.doc-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.doc-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   PROCESS
   ======================================== */
.section-process {
    background: var(--primary-dark);
    padding: 80px 0;
}
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}
.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.step-marker {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
}
.step-content { padding-bottom: 8px; }
.step-content h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.step-content p {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.6;
}
.process-connector {
    width: 2px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    margin-left: 23px;
}

/* ========================================
   SEGMENTS
   ======================================== */
.section-segments { background: var(--white); }
.segments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.segment-card {
    padding: 32px 24px;
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.segment-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.segment-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.segment-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   CTA
   ======================================== */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 72px 0;
}
.cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}
.cta-content h2 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 32px;
}
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ========================================
   CONTACT
   ======================================== */
.section-contact { background: var(--gray-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.contact-item svg { width: 20px; height: 20px; color: var(--primary); min-width: 20px; }
.contact-item a {
    font-size: 0.95rem;
    color: var(--dark-light);
}
.contact-item a:hover { color: var(--primary); }

.contact-offices h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.office-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.office {
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}
.office strong { display: block; font-size: 0.85rem; color: var(--dark); }
.office span { font-size: 0.78rem; color: var(--gray); }

.contact-form-area {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.contact-form h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius);
    background: var(--gray-light);
    color: var(--dark);
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(13,71,161,0.1);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--gray);
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 56px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-brand .logo-bruna { font-size: 1.4rem; color: var(--white); }
.footer-brand .logo-divider { height: 20px; background: rgba(255,255,255,0.3); }
.footer-brand .logo-division { font-size: 0.6rem; color: rgba(255,255,255,0.7); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }

.footer-links h5,
.footer-contact h5 {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact p,
.footer-contact a { font-size: 0.85rem; display: block; margin-bottom: 6px; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    .segments-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    .top-bar-inner { flex-direction: column; gap: 4px; text-align: center; }
    
    .mobile-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-mid);
        box-shadow: var(--shadow-md);
        padding: 16px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 12px 16px; }
    
    .hero { height: 70vh; min-height: 450px; }
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; }

    .trust-items { gap: 24px; }
    .trust-divider { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image { order: -1; }
    .about-badge { bottom: -10px; right: 10px; }

    .products-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr; }
    .segments-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .office-list { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .section { padding: 56px 0; }
    .section-title { font-size: 1.8rem; }
}
