/*
 * Nopalco Theme - Estilos de la Pagina Nosotros
 * Se carga independientemente para evitar problemas de encoding
 */

/* Variables */
:root {
    --corp-dark: #1a1a2e;
    --corp-green: #064e3b;
    --corp-green-light: #0f766e;
    --corp-warm: #92400e;
    --corp-warm-light: #d97706;
    --corp-bg: #fafaf9;
    --corp-bg-alt: #f5f4f2;
    --corp-text: #374151;
    --corp-text-light: #6b7280;
    --corp-border: #e5e7eb;
}

/* Keyframes */
@keyframes nosFadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nosFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(3deg); }
}
@keyframes nosFloatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(-2deg); }
}
@keyframes nosGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes nosShimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* Scroll Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Divider */
.nosotros-divider { line-height: 0; margin-top: -2px; position: relative; z-index: 5; }
.nosotros-divider svg { display: block; width: 100%; height: 50px; }

/* ============================================
   HERO
   ============================================ */
.nosotros-hero {
    position: relative;
    padding: 130px 20px 120px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nosotros-hero-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    z-index: 0;
    will-change: transform;
}
.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(6,78,59,0.82) 50%, rgba(15,118,110,0.78) 100%);
    z-index: 1;
}
.nosotros-hero-shape { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none; }
.nosotros-hero-shape--1 {
    width: 300px; height: 300px; top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(217,119,6,0.12) 0%, transparent 70%);
    animation: nosFloat 8s ease-in-out infinite;
}
.nosotros-hero-shape--2 {
    width: 200px; height: 200px; bottom: -40px; left: 5%;
    background: radial-gradient(circle, rgba(15,118,110,0.15) 0%, transparent 70%);
    animation: nosFloatSlow 10s ease-in-out infinite;
}
.nosotros-hero-shape--3 {
    width: 120px; height: 120px; top: 30%; left: 10%;
    border: 2px solid rgba(255,255,255,0.06); border-radius: 24px;
    transform: rotate(45deg); animation: nosFloat 12s ease-in-out infinite reverse;
}
.nosotros-hero-content { position: relative; z-index: 3; max-width: 750px; margin: 0 auto; }
.nosotros-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    padding: 8px 22px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 28px;
}
.nosotros-hero h1 {
    font-size: 3.2rem; font-weight: 800; color: #fff;
    margin-bottom: 28px; line-height: 1.12;
    letter-spacing: -0.8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nosotros-hero p {
    font-size: 1.12rem; line-height: 1.75;
    color: rgba(255,255,255,0.88);
    margin-bottom: 14px; max-width: 680px;
    margin-left: auto; margin-right: auto;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.nosotros-section { padding: 90px 20px; position: relative; overflow: hidden; }
.nosotros-section-title {
    font-size: 2.1rem; font-weight: 800;
    color: var(--corp-green); margin-bottom: 8px; line-height: 1.2;
}
.nosotros-section-title.text-center { text-align: center; }
.nosotros-accent-bar {
    width: 50px; height: 4px;
    background: linear-gradient(90deg, var(--corp-green-light), var(--corp-green));
    border-radius: 2px; margin-bottom: 25px;
    transition: width 0.5s ease;
}
.nosotros-accent-bar.center { margin-left: auto; margin-right: auto; margin-bottom: 45px; }
.nosotros-accent-bar.warm { background: linear-gradient(90deg, var(--corp-warm-light), var(--corp-warm)); }
[data-reveal].is-revealed .nosotros-accent-bar,
.nosotros-accent-bar.is-revealed { width: 60px; }

/* ============================================
   QUIENES SOMOS - 2 columnas
   ============================================ */
.nosotros-quienes { background: #fff; }
.nosotros-two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 50px; align-items: center;
    max-width: 1100px; margin: 0 auto;
}
.nosotros-text-block { max-width: 520px; }
.nosotros-text-block p { font-size: 1.05rem; color: var(--corp-text); line-height: 1.8; margin-bottom: 16px; }
.nosotros-side-visual-inner {
    position: relative; border-radius: 16px;
    overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.nosotros-side-visual-inner img {
    width: 100%; height: 380px; object-fit: cover;
    display: block; transition: transform 0.6s ease;
}
.nosotros-side-visual-inner:hover img { transform: scale(1.05); }
.nosotros-side-visual-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: rgba(6,78,59,0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #fff; padding: 10px 18px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.nosotros-side-visual-badge-icon {
    width: 32px; height: 32px; background: rgba(217,119,6,0.9);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

/* ============================================
   QUE HACEMOS - Tarjetas
   ============================================ */
.nosotros-hacemos { background: var(--corp-bg-alt); }
.nosotros-cards-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 25px; max-width: 1100px; margin: 0 auto;
}
.nosotros-card {
    background: #fff; border: 1px solid var(--corp-border);
    border-radius: 14px; padding: 32px 25px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden; will-change: transform;
}
.nosotros-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--corp-green-light), var(--corp-warm-light));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.nosotros-card::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: none; pointer-events: none;
}
.nosotros-card:hover::after { animation: nosShimmer 0.8s ease forwards; }
.nosotros-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: var(--corp-green-light);
}
.nosotros-card:hover::before { transform: scaleX(1); }
.nosotros-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(15,118,110,0.08), rgba(6,78,59,0.12));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px; transition: all 0.4s ease;
}
.nosotros-card-icon i { font-size: 1.4rem; color: var(--corp-green-light); transition: all 0.4s ease; }
.nosotros-card:hover .nosotros-card-icon {
    background: linear-gradient(135deg, var(--corp-green-light), var(--corp-green));
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(15,118,110,0.25);
}
.nosotros-card:hover .nosotros-card-icon i { color: #fff; }
.nosotros-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--corp-green); margin-bottom: 12px; }
.nosotros-card p { font-size: 0.92rem; color: var(--corp-text-light); line-height: 1.65; margin: 0; }

/* ============================================
   PROPUESTA DE VALOR
   ============================================ */
.nosotros-valor { background: #fff; }
.nosotros-valor-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 40px; max-width: 1050px; margin: 0 auto; text-align: center;
}
.nosotros-valor-icon-wrap {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15,118,110,0.06), rgba(6,78,59,0.1));
    border: 2px solid rgba(15,118,110,0.12);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; position: relative;
}
.nosotros-valor-icon-wrap::after {
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%; border: 1px dashed rgba(15,118,110,0.15);
    transition: all 0.4s ease;
}
.nosotros-valor-item:hover .nosotros-valor-icon-wrap {
    background: linear-gradient(135deg, var(--corp-green-light), var(--corp-green));
    border-color: var(--corp-green-light);
    transform: scale(1.1); box-shadow: 0 8px 25px rgba(15,118,110,0.25);
}
.nosotros-valor-item:hover .nosotros-valor-icon-wrap::after {
    border-color: transparent; transform: scale(1.2); opacity: 0;
}
.nosotros-valor-icon-wrap i { font-size: 1.8rem; color: var(--corp-green-light); transition: color 0.4s ease; }
.nosotros-valor-item:hover .nosotros-valor-icon-wrap i { color: #fff; }
.nosotros-valor-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--corp-green); margin-bottom: 10px; }
.nosotros-valor-item p { font-size: 0.9rem; color: var(--corp-text-light); line-height: 1.65; margin: 0; }

/* ============================================
   MERA TAQUERIA
   ============================================ */
.nosotros-mera {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%);
    border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a;
}
.nosotros-mera-inner {
    max-width: 1050px; margin: 0 auto;
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: 45px; align-items: center;
}
.nosotros-mera-image {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(146,64,14,0.15); position: relative;
}
.nosotros-mera-image::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 16px; border: 1px solid rgba(217,119,6,0.2); pointer-events: none;
}
.nosotros-mera-image img {
    width: 100%; height: 400px; object-fit: cover;
    display: block; transition: transform 0.6s ease;
}
.nosotros-mera-image:hover img { transform: scale(1.04); }
.nosotros-mera-label {
    display: inline-block; background: rgba(146,64,14,0.1);
    color: var(--corp-warm); padding: 6px 16px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 15px;
}
.nosotros-mera .nosotros-section-title { color: var(--corp-warm); }
.nosotros-mera-content p { font-size: 1rem; color: #4b3621; line-height: 1.75; margin-bottom: 14px; }
.nosotros-mera-links { margin-top: 28px; display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.nosotros-mera-site { font-size: 0.9rem; color: var(--corp-text-light); }
.nosotros-mera-site a { color: var(--corp-warm); font-weight: 600; }
.nosotros-mera-site a:hover { color: var(--corp-warm-light); }
.nosotros-btn-warm {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--corp-warm-light), #b45309);
    color: #fff; padding: 13px 26px; border-radius: 8px;
    font-weight: 700; font-size: 0.92rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217,119,6,0.25);
    position: relative; overflow: hidden;
}
.nosotros-btn-warm:hover {
    color: #fff; transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217,119,6,0.35);
}
.nosotros-btn-warm i { transition: transform 0.3s ease; }
.nosotros-btn-warm:hover i { transform: translateX(4px); }

/* ============================================
   RESPALDO EMPRESARIAL
   ============================================ */
.nosotros-respaldo { background: var(--corp-bg-alt); }
.nosotros-respaldo-box {
    display: flex; gap: 30px; align-items: flex-start;
    max-width: 800px; margin: 0 auto; background: #fff;
    border: 1px solid var(--corp-border);
    border-left: 4px solid var(--corp-green-light);
    border-radius: 14px; padding: 38px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}
.nosotros-respaldo-box:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-4px);
}
.nosotros-respaldo-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, rgba(15,118,110,0.08), rgba(6,78,59,0.12));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.4s ease;
}
.nosotros-respaldo-box:hover .nosotros-respaldo-icon {
    background: linear-gradient(135deg, var(--corp-green-light), var(--corp-green));
}
.nosotros-respaldo-icon i { font-size: 1.5rem; color: var(--corp-green-light); transition: color 0.4s ease; }
.nosotros-respaldo-box:hover .nosotros-respaldo-icon i { color: #fff; }
.nosotros-respaldo-content .nosotros-section-title { font-size: 1.4rem; margin-bottom: 12px; }
.nosotros-respaldo-content p { font-size: 1rem; color: var(--corp-text); line-height: 1.75; margin: 0; }

/* ============================================
   MISION Y VISION
   ============================================ */
.nosotros-mv { background: #fff; }
.nosotros-mv-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 30px; max-width: 920px; margin: 0 auto;
}
.nosotros-mv-card {
    background: var(--corp-bg); border: 1px solid var(--corp-border);
    border-radius: 14px; padding: 38px 32px;
    position: relative; overflow: hidden; transition: all 0.4s ease;
}
.nosotros-mv-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15,118,110,0.02), rgba(6,78,59,0.04));
    opacity: 0; transition: opacity 0.4s ease;
}
.nosotros-mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: var(--corp-green-light);
}
.nosotros-mv-card:hover::before { opacity: 1; }
.nosotros-mv-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--corp-green-light), var(--corp-green));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px; position: relative; z-index: 1;
    box-shadow: 0 4px 12px rgba(15,118,110,0.2);
}
.nosotros-mv-icon i { font-size: 1.2rem; color: #fff; }
.nosotros-mv-card h3 {
    font-size: 1.35rem; font-weight: 700; color: var(--corp-green);
    margin-bottom: 14px; position: relative; z-index: 1;
}
.nosotros-mv-card p { font-size: 0.95rem; color: var(--corp-text); line-height: 1.7; margin: 0; position: relative; z-index: 1; }

/* ============================================
   DATOS CORPORATIVOS
   ============================================ */
.nosotros-datos { background: var(--corp-bg-alt); }
.nosotros-datos-table {
    max-width: 750px; margin: 0 auto; background: #fff;
    border: 1px solid var(--corp-border); border-radius: 14px;
    overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.nosotros-datos-table table { width: 100%; border-collapse: collapse; }
.nosotros-datos-table tr { border-bottom: 1px solid #f3f4f6; transition: background 0.3s ease; }
.nosotros-datos-table tr:last-child { border-bottom: none; }
.nosotros-datos-table tr:hover { background: rgba(15,118,110,0.02); }
.nosotros-datos-table th,
.nosotros-datos-table td { padding: 18px 26px; text-align: left; font-size: 0.92rem; }
.nosotros-datos-table th {
    width: 42%; font-weight: 600; color: var(--corp-green);
    background: #f9fafb; border-right: 1px solid #f3f4f6;
}
.nosotros-datos-table th i { margin-right: 10px; color: var(--corp-green-light); opacity: 0.7; font-size: 0.85rem; }
.nosotros-datos-table td { color: var(--corp-text); line-height: 1.5; }
.nosotros-datos-table td a { color: var(--corp-green-light); font-weight: 500; transition: color 0.3s ease; }
.nosotros-datos-table td a:hover { color: var(--corp-warm-light); }

/* ============================================
   CTA FINAL
   ============================================ */
.nosotros-cta {
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 50%, #064e3b 100%);
    background-size: 200% 200%;
    animation: nosGradientShift 8s ease infinite;
    text-align: center; padding: 100px 20px;
    position: relative; overflow: hidden;
}
.nosotros-cta-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.nosotros-cta-shape--1 {
    width: 350px; height: 350px; top: -100px; right: -80px;
    background: radial-gradient(circle, rgba(217,119,6,0.1) 0%, transparent 70%);
    animation: nosFloat 8s ease-in-out infinite;
}
.nosotros-cta-shape--2 {
    width: 250px; height: 250px; bottom: -80px; left: -60px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    animation: nosFloatSlow 10s ease-in-out infinite;
}
.nosotros-cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.nosotros-cta h2 {
    font-size: 2.1rem; font-weight: 800; color: #fff;
    margin-bottom: 20px; line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nosotros-cta p { font-size: 1.08rem; color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 38px; }
.nosotros-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--corp-warm-light); color: #fff;
    padding: 16px 36px; border-radius: 8px;
    font-weight: 700; font-size: 1.08rem;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: relative; overflow: hidden;
}
.nosotros-btn-primary:hover {
    background: #fff; color: var(--corp-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.nosotros-btn-primary i { transition: transform 0.3s ease; }
.nosotros-btn-primary:hover i { transform: translateX(5px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .nosotros-two-col { grid-template-columns: 1fr; gap: 35px; }
    .nosotros-text-block { max-width: 100%; }
    .nosotros-side-visual-inner img { height: 300px; }
    .nosotros-cards-grid { grid-template-columns: 1fr 1fr; }
    .nosotros-valor-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .nosotros-mera-inner { grid-template-columns: 1fr; gap: 30px; }
    .nosotros-mera-image img { height: 300px; }
}
@media (max-width: 768px) {
    .nosotros-hero { padding: 80px 15px 70px; min-height: 420px; }
    .nosotros-hero h1 { font-size: 2.1rem; }
    .nosotros-hero p { font-size: 1rem; }
    .nosotros-hero-shape--3 { display: none; }
    .nosotros-section { padding: 55px 15px; }
    .nosotros-section-title { font-size: 1.65rem; }
    .nosotros-cards-grid { grid-template-columns: 1fr; }
    .nosotros-valor-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .nosotros-mv-grid { grid-template-columns: 1fr; }
    .nosotros-respaldo-box { flex-direction: column; padding: 25px; }
    .nosotros-mera-links { flex-direction: column; align-items: flex-start; gap: 15px; }
    .nosotros-datos-table th,
    .nosotros-datos-table td { display: block; width: 100%; padding: 10px 20px; }
    .nosotros-datos-table th { border-right: none; padding-bottom: 4px; background: transparent; }
    .nosotros-datos-table td { padding-top: 4px; padding-bottom: 18px; }
    .nosotros-cta { padding: 65px 15px; }
    .nosotros-cta h2 { font-size: 1.55rem; }
}
@media (max-width: 480px) {
    .nosotros-valor-grid { grid-template-columns: 1fr; }
    .nosotros-hero h1 { font-size: 1.75rem; }
}
