:root {
    --bg-dark: #0e0e0e;
    --bg-secondary: #161616;
    --bg-light: #fafafa;
    --text-muted: #777;
    --border-soft: #e5e5e5;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-light);
    margin: 0;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 82px;
    background: rgba(14,14,14,0.95);
    z-index: 1000;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: 36px;
    margin-bottom: 6px;
}

.brand span {
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.nav a {
    color: #fff;
    margin-left: 26px;
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
}

/* HERO */
.page-hero {
    min-height: 55vh;
    padding-top: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(14,14,14,0.9), rgba(14,14,14,0.9)),
        url("../img/hero/fondo_portada.png") center / cover no-repeat;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-weight: 300;
    font-size: 3rem;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
}

/* SECTION */
.section {
    padding: 110px 0;
}

/* LAYOUT */
.project-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* SLIDER */
.project-slider-modern {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.project-slider-modern img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14,14,14,0.75);
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
}

.prev { left: 0; }
.next { right: 0; }

.slider-dots {
    text-align: center;
    margin-top: 16px;
}

.dot {
    height: 8px;
    width: 8px;
    background: #ccc;
    display: inline-block;
    margin: 0 5px;
    border-radius: 50%;
}

.dot.active {
    background: #111;
}

/* TEXTO */
.project-description h2 {
    font-weight: 400;
}

.project-description p {
    font-size: 0.95rem;
    color: #555;
}

.project-data {
    list-style: none;
    padding: 0;
}

.project-data li {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.project-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* FOOTER */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    color: #cfcfcf;
    font-size: 0.75rem;
}

/* ANIMACIONES */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .project-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== BLOQUE DE VALOR – DARK ELEGANTE ===== */

.section-highlight {
    background: #0b0f19;
    color: #f9fafb;
    border-top: 1px solid #1f2933;
    border-bottom: 1px solid #1f2933;
}

.value-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.value-tag {
    display: inline-block;
    background: #ffffff;
    color: #0b0f19;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.value-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.value-header p {
    color: #d1d5db;
    line-height: 1.6;
}

/* ===== GRID ===== */

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

/* ===== TARJETAS ===== */

.value-card {
    background: #111827;
    border-radius: 16px;
    padding: 26px 24px;
    border: 1px solid #1f2937;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

/* ===== ICONOS ===== */

.value-icon {
    font-size: 1.9rem;
    margin-bottom: 14px;
    color: #ffffff;
}

/* ===== TEXTO ===== */

.value-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d5db;
}

/* ======================================================
   MENU MOVIL – DEFINITIVO (SIN CAMBIAR VISUAL DESKTOP)
====================================================== */

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px 10px;
    line-height: 1;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    user-select: none;
}

/* ancla el desplegable al header */
.header-content {
    position: relative;
}

/* SOLO móvil */
@media (max-width: 768px){

    /* oculta links del header */
    .nav {
        display: none !important;
    }

    /* muestra botón */
    .menu-toggle {
        display: block !important;
    }

    /* FIX iPhone: quita “pastilla” nativa */
    .menu-toggle{
        -webkit-appearance: none;
        appearance: none;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* menú abierto */
    .nav.active {
        display: flex !important;
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(14,14,14,0.98);
        padding: 18px 0;
        text-align: center;
        z-index: 9999;
    }

    .nav.active a {
        margin: 12px 0;
    }
}
