/* Yakumarine main.css - v1.1 */

/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --navy: #0A192F;          /* Azul marino profundo - Autoridad */
    --navy-light: #112240;
    --steel: #1E3A5F;
    --orange: #FF6900;        /* Naranja de seguridad - Acción */
    --orange-hover: #E65C00;
    --white: #FFFFFF;
    --off-white: #F4F6F9;
    --gray-100: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --text-main: #1E293B;
    --text-light: #64748B;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   UTILIDADES / TIPOGRAFÍA
   ========================================= */
.section-padding { padding: 88px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.2;
}
.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--orange-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background-color: rgba(255,255,255,0.08); }
.btn-dark {
    background-color: var(--navy);
    color: var(--white);
}
.btn-dark:hover { background-color: var(--navy-light); }

/* =========================================
   HEADER / NAVEGACIÓN
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.logo span { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--orange); }
.nav-cta { margin-left: 16px; padding: 10px 22px; font-size: 0.85rem; }

.mobile-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: white; font-size: 1.6rem; line-height: 1;
}

/* =========================================
   HERO SECTION
   ========================================= */
/* =========================================
   HERO CON VIDEO DE FONDO
   ========================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 76px;
    background-color: var(--navy);
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Badge naranja visible (⚓ Especialistas en Puertos Peruanos) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--orange);
    border: 1px solid var(--orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(255, 105, 0, 0.35);
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-title span { color: var(--orange); }

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    max-width: 560px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Overlay direccional: oscuro a la izquierda, más claro a la derecha */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(10, 25, 47, 0.92) 0%,
        rgba(10, 25, 47, 0.78) 45%,
        rgba(17, 34, 64, 0.25) 75%,
        rgba(17, 34, 64, 0.20) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* Accesibilidad: si el usuario prefiere no ver animaciones, pausa el video */

/* En móvil, muestra el poster en lugar del video (ahorra datos) */
@media (max-width: 768px) {
    .hero-video-bg video { display: none; }
    .hero {
        background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&q=80&w=1600')
                    center/cover no-repeat;
    }
}

/* =========================================
   TRUST BAR / MARCAS
   ========================================= */
.trust-bar { background-color: var(--off-white); padding: 40px 0; border-bottom: 1px solid var(--gray-100); }
.trust-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 24px;
}
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
}
/* =========================================
   MARCAS (logos en imagen)
   ========================================= */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
}
.brand-logo {
    max-height: 48px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: var(--transition);
}
.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .brand-grid { gap: 24px; }
    .brand-logo { max-height: 34px; }
}

/* =========================================
   SERVICIOS
   ========================================= */
.services { background-color: var(--white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background-color: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-icon {
    width: 48px; height: 48px;
    background-color: rgba(255,105,0,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* =========================================
   COBERTURA (MAPA / PUERTOS)
   ========================================= */
.coverage { background-color: var(--navy); color: var(--white); }
.coverage .section-title { color: var(--white); }
.coverage .section-subtitle { color: rgba(255,255,255,0.65); }
.coverage .section-label { color: var(--orange); }
.ports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 48px;
}
.port-item {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex; align-items: center; gap: 12px;
    transition: var(--transition);
}
.port-item:hover { background-color: rgba(255,105,0,0.1); border-color: var(--orange); }
.port-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--orange); flex-shrink: 0; }
.port-name { font-weight: 600; font-size: 0.95rem; }
.port-region { font-size: 0.75rem; color: rgba(255,255,255,0.5); display: block; }

/* =========================================
   NOSOTROS / VALOR
   ========================================= */
.about { background-color: var(--off-white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; }
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }

/* =========================================
   CTA / CONTACTO
   ========================================= */
.cta-section { background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%); color: var(--white); text-align: center; }
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 32px; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background-color: #060F1F; color: rgba(255,255,255,0.6); padding: 64px 0 32px; font-size: 0.85rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand p { max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; justify-content: center; }
    .brand-grid { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==== FORMULARIO DE CONTACTO ==== */
.contact-wrapper { max-width: 720px; margin: 0 auto; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}
.btn-block { width: 100%; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 16px; text-align: center; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #10B981; }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }
.alert ul { list-style: disc; padding-left: 20px; }

/* ==== WHATSAPP FLOTANTE ==== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    font-size: 1.6rem;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ==== RESPONSIVE FORM ==== */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 24px; }
}

/* ==== NAV MÓVIL ==== */
@media (max-width: 768px) {
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--navy);
        padding: 24px;
        gap: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* =========================================
   PAGE HERO (páginas interiores)
   ========================================= */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
    color: var(--white);
    padding: 140px 0 72px;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,25,47,0.85), rgba(30,58,95,0.75));
    z-index: 1;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}
.breadcrumbs a { color: rgba(255,255,255,0.8); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { color: rgba(255,255,255,0.35); }
.page-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    max-width: 800px;
}
.page-hero-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 640px;
    line-height: 1.6;
}

/* =========================================
   SERVICIOS DETALLADOS
   ========================================= */
.service-detail {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 28px;
    transition: var(--transition);
}
.service-detail:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.service-detail-icon {
    width: 64px; height: 64px;
    background: rgba(255,105,0,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    align-self: start;
}
.service-detail h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.25;
}
.service-detail > div > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}
.service-detail ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.service-detail ul li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.service-detail ul li::before {
    content: '✓';
    color: var(--orange);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =========================================
   PROCESO / PASOS
   ========================================= */
.process-section { background: var(--off-white); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.process-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
}
.process-step-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.9;
}
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* =========================================
   PUERTOS DETALLADOS
   ========================================= */
.ports-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.port-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}
.port-card:hover { background: rgba(255,105,0,0.08); border-color: var(--orange); }
.port-card-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.port-card-code {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--orange);
    padding: 4px 10px;
    background: rgba(255,105,0,0.15);
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.port-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.port-card-region { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; display: block; }
.port-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.port-card .response-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px; font-size: 0.78rem; color: var(--orange); font-weight: 600;
}

/* =========================================
   VALORES / WHY
   ========================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.value-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    border-top: 3px solid var(--orange);
    box-shadow: var(--shadow-sm);
}
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.value-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* =========================================
   RESPONSIVE (páginas interiores)
   ========================================= */
@media (max-width: 768px) {
    .page-hero { padding: 120px 0 56px; }
    .page-hero-title { font-size: 1.9rem; }
    .service-detail { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
    .service-detail ul { grid-template-columns: 1fr; }
}

/* ==== LOGO IMAGEN (HEADER Y FOOTER) ==== */
.logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-footer-img {
    height: 70px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .logo-img { height: 46px; }
    .logo-footer-img { height: 32px; }
}

/* ==== SELECTOR DE IDIOMA ==== */
.lang-switcher {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-left: 8px;
}
.lang-switcher:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--orange);
    color: var(--orange);
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        align-self: flex-start;
    }
}

.nav-system-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9em;
    padding: 0.4rem 0.6rem;
    border-left: 1px solid rgba(255,255,255,.15);
    margin-left: 0.5rem;
}
.nav-system-link:hover { color: #0d6efd; }

/* Refuerzo hero (por si el reemplazo no aplicó) */
.hero { position: relative; overflow: hidden; }
.hero-video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-bg video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; position: relative; z-index: 2; }