/* ============================================
   JOYA TOURS PERÚ — ESTILOS NOSOTROS & CONTACTO
   Complementa styles.css (que debe cargarse primero)
   ============================================ */


/* ============================================================
   HERO COMPACTO — reutiliza las clases de terminos
   ============================================================ */
.nosotros-hero {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 86, 117, 0.65), rgba(8, 60, 80, 0.65));
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.nosotros-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nosotros-hero-content p {
    font-size: 1.1rem;
    opacity: 0.92;
}

.breadcrumb-nosotros {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.breadcrumb-nosotros a {
    color: #f2aa21;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nosotros a:hover { color: #fff; }


/* ============================================================
   MENÚ INTERNO (Nosotros / Contacto)
   Barra de navegación sticky debajo del header
   ============================================================ */
.nosotros-nav-bar {
    background: white;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 70px; /* debajo del header fijo */
    z-index: 800;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nosotros-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
}

.nosotros-nav-bar a {
    padding: 1rem 1.8rem;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.nosotros-nav-bar a:hover {
    color: #0d5675;
    border-bottom-color: #f2aa21;
}

.nosotros-nav-bar a.active {
    color: #0d5675;
    border-bottom-color: #0d5675;
}


/* ============================================================
   SECCIÓN NOSOTROS — INTRODUCCIÓN
   ============================================================ */
#nosotros {
    padding: 5rem 5%;
    background: #fff;
    max-width: 100%;
    margin: 0;
}

.nosotros-intro {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros-intro-text h2 {
    font-size: 2.4rem;
    color: #0d5675;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.nosotros-intro-text h2 span {
    color: #f2aa21;
}

.nosotros-intro-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.nosotros-intro-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(13, 86, 117, 0.2);
}

.nosotros-intro-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.nosotros-intro-img:hover img {
    transform: scale(1.04);
}

.nosotros-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #f2aa21;
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(242, 170, 33, 0.4);
}


/* ============================================================
   HISTORIA
   ============================================================ */
#historia {
    padding: 5rem 5%;
    background: #f8f9fa;
    max-width: 100%;
    margin: 0;
}

.historia-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.historia-titulo {
    text-align: center;
    font-size: 2.4rem;
    color: #0d5675;
    margin-bottom: 0.6rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.historia-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f2aa21, #39b671);
    border-radius: 2px;
}

.historia-subtitulo {
    text-align: center;
    color: #777;
    margin-bottom: 3.5rem;
    font-size: 1rem;
}

/* Timeline vertical */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f2aa21, #0d5675, #39b671);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -0.55rem;
    top: 0.4rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f2aa21;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #f2aa21;
    flex-shrink: 0;
}

.timeline-year {
    display: inline-block;
    background: #0d5675;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    color: #0d5675;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.timeline-item p {
    color: #666;
    line-height: 1.7;
    font-size: 0.97rem;
}


/* ============================================================
   MISIÓN / VISIÓN / VALORES — Cards en fila
   ============================================================ */
#mision-vision {
    padding: 5rem 5%;
    background: white;
    max-width: 100%;
    margin: 0;
}

.mv-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mv-titulo {
    text-align: center;
    font-size: 2.4rem;
    color: #0d5675;
    margin-bottom: 0.6rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.mv-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f2aa21, #39b671);
    border-radius: 2px;
}

.mv-subtitulo {
    text-align: center;
    color: #777;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mv-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.35s;
    border-top: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 86, 117, 0.15);
    border-top-color: #f2aa21;
}

.mv-card-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
}

.mv-card h3 {
    color: #0d5675;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mv-card p {
    color: #666;
    line-height: 1.75;
    font-size: 0.97rem;
}

/* Variante de colores para cada card */
.mv-card.mision  { border-top-color: #f2aa21; }
.mv-card.vision  { border-top-color: #0d5675; }
.mv-card.valores { border-top-color: #39b671; }

.mv-card.mision  .mv-card-icon { color: #f2aa21; }
.mv-card.vision  .mv-card-icon { color: #0d5675; }
.mv-card.valores .mv-card-icon { color: #39b671; }

/* Lista de valores dentro de la card */
.mv-card ul {
    list-style: none;
    text-align: left;
    margin-top: 0.5rem;
}

.mv-card ul li {
    padding: 0.35rem 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mv-card ul li::before {
    content: '✓';
    color: #39b671;
    font-weight: 700;
    flex-shrink: 0;
}


/* ============================================================
   EQUIPO
   ============================================================ */
#equipo {
    padding: 5rem 5%;
    background: #f8f9fa;
    max-width: 100%;
    margin: 0;
}

.equipo-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.equipo-titulo {
    text-align: center;
    font-size: 2.4rem;
    color: #0d5675;
    margin-bottom: 0.6rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.equipo-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f2aa21, #39b671);
    border-radius: 2px;
}

.equipo-subtitulo {
    text-align: center;
    color: #777;
    margin-bottom: 3rem;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.equipo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s;
    text-align: center;
}

.equipo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 86, 117, 0.15);
}

.equipo-foto {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
}

/* Placeholder si no hay foto */
.equipo-foto-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #0d5675, #04a2e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.equipo-info {
    padding: 1.5rem;
}

.equipo-info h3 {
    color: #0d5675;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.equipo-info .equipo-cargo {
    color: #f2aa21;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipo-info p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ============================================================
   SECCIÓN CONTACTO
   ============================================================ */
#contacto {
    padding: 5rem 5%;
    background: white;
    max-width: 100%;
    margin: 0;
}

.contacto-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-titulo {
    text-align: center;
    font-size: 2.4rem;
    color: #0d5675;
    margin-bottom: 0.6rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.contacto-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f2aa21, #39b671);
    border-radius: 2px;
}

.contacto-subtitulo {
    text-align: center;
    color: #777;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}


/* ── Datos de contacto ─────────────────────────────────────── */
.contacto-datos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: #f8f9fa;
    padding: 1.4rem;
    border-radius: 12px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.contacto-item:hover {
    border-left-color: #f2aa21;
    box-shadow: 0 5px 20px rgba(13, 86, 117, 0.1);
    transform: translateX(4px);
}

.contacto-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0d5675, #04a2e1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.contacto-item-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.contacto-item-text h4 {
    color: #0d5675;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.contacto-item-text p,
.contacto-item-text a {
    color: #444;
    font-size: 0.97rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s;
}

.contacto-item-text a:hover { color: #0d5675; }

/* Redes sociales en la sección de contacto */
.contacto-redes {
    background: #f8f9fa;
    padding: 1.4rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.contacto-redes:hover {
    border-left-color: #f2aa21;
    box-shadow: 0 5px 20px rgba(13, 86, 117, 0.1);
}

.contacto-redes h4 {
    color: #0d5675;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    font-weight: 700;
    
}

.contacto-redes-icons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    
}

.contacto-red-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #39b671, #0d5675); /* color de boton de redes */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.contacto-red-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contacto-red-link img {
    width: 22px;
    height: 22px;
}

/* Horario de atención */
.contacto-horario {
    background: linear-gradient(135deg, #0d5675, #044c72);
    color: white;
    padding: 1.4rem;
    border-radius: 12px;
}

.contacto-horario h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    color: #f2aa21;
    font-weight: 700;
}

.contacto-horario-fila {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.9);
}

.contacto-horario-fila:last-child { border-bottom: none; }
.contacto-horario-fila span:last-child { font-weight: 600; color: #f2aa21; }


/* ── Formulario de contacto ────────────────────────────────── */
.contacto-form-wrapper {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.contacto-form-wrapper h3 {
    color: #0d5675;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.contacto-form-wrapper > p {
    color: #888;
    font-size: 0.93rem;
    margin-bottom: 1.8rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contacto-form .form-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contacto-form label {
    color: #0d5675;
    font-size: 0.88rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.8px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
    color: #333;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #0d5675;
    box-shadow: 0 0 0 3px rgba(13, 86, 117, 0.08);
}

.contacto-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0d5675, #044c72);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 0.3px;
    margin-top: 0.5rem;
}

.btn-enviar:hover {
    background: linear-gradient(135deg, #39b671, #0d5675);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 86, 117, 0.3);
}

.btn-enviar:active { transform: translateY(0); }

/* Mensaje de éxito tras envío */
.form-success {
    display: none;
    background: #e8f8ef;
    border-left: 4px solid #39b671;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    color: #1a7a46;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.97rem;
}

.form-success.visible { display: block; }


/* ============================================================
   STATS RÁPIDAS (entre nosotros y contacto)
   ============================================================ */
.nosotros-stats {
    background: linear-gradient(135deg, #0d5675, #044c72);
    padding: 3.5rem 5%;
}

.nosotros-stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.nstat-item { color: white; }

.nstat-numero {
    font-size: 2.8rem;
    font-weight: 700;
    color: #f2aa21;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.nstat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .nosotros-intro { grid-template-columns: 1fr; gap: 2.5rem; }
    .nosotros-intro-img { order: -1; }
    .nosotros-intro-img img { height: 300px; }
    .mv-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contacto-grid { grid-template-columns: 1fr; }
    .nosotros-stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nosotros-hero-content h1 { font-size: 2rem; }
    .nosotros-nav-bar a { padding: 0.8rem 1rem; font-size: 0.85rem; }
    .form-fila { grid-template-columns: 1fr; }
    .nosotros-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .equipo-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { padding-left: 1.5rem; }
}

@media (max-width: 480px) {
    .nosotros-nav-inner { flex-wrap: wrap; }
    .nosotros-nav-bar a { padding: 0.7rem 0.8rem; font-size: 0.8rem; }
    .nosotros-stats-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .equipo-grid { grid-template-columns: 1fr; }
    .contacto-form-wrapper { padding: 1.5rem; }
    .nosotros-hero { height: 240px; }
}
