/* ============================================================
   VARIABLES DE TEMA (OSCURA POR DEFECTO)
   ------------------------------------------------------------
   Definimos los colores base del sitio. El modo claro
   sobrescribe estas variables.
============================================================ */
:root {
    --color-bg: #050509;
    --color-bg-alt: #0a0a12;
    --color-text: #f5f5f5;
    --color-muted: #aaaaaa;
    --color-accent: #f94b9b;
    --color-border: #2a2a35;

    --hero-bg: #050509;
}

/* ============================================================
   TEMA CLARO
   ------------------------------------------------------------
   Se activa añadiendo la clase .light-theme al <body>.
============================================================ */
body.light-theme {
    --color-bg: #ffffff;
    --color-bg-alt: #f2f2f7;
    --color-text: #111111;
    --color-muted: #555555;
    --color-accent: #d92f7f;
    --color-border: #dddddd;

    --hero-bg: #ffffff;
}

/* ============================================================
   RESET GENERAL
   ------------------------------------------------------------
   Normaliza estilos y asegura consistencia entre navegadores.
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Urbanist', sans-serif;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   HEADER
   ------------------------------------------------------------
   Header fijo con fondo semitransparente y logo recortado.
============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-bg-alt);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

/* Logo con recorte visual para eliminar aire del PNG */
.logo__img {
    height: 120px;
    width: auto;
    object-fit: contain;
    object-position: center;
    clip-path: inset(18% 0 18% 0);
    transition: transform 0.25s ease;
}

@media (hover: hover) {
    .logo__img:hover {
        transform: scale(1.05);
    }
}

/* ============================================================
   MENÚ DESKTOP
============================================================ */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.nav a {
    color: var(--color-muted);
    font-size: 1rem;
}

.nav a:hover {
    color: var(--color-text);
}

/* ============================================================
   BOTONES GENERALES
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn--outline {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent);
    color: #050509;
}

.btn--primary {
    background: var(--color-accent);
    color: #050509;
}

.btn--primary:hover {
    filter: brightness(1.1);
}

.btn--ghost {
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn--ghost:hover {
    background: var(--color-border);
}

.btn--small {
    padding: 6px 14px;
}

.btn--full {
    width: 100%;
}

/* ============================================================
   HAMBURGUESA
============================================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

/* Botón cambio de tema */
.theme-toggle {
    margin-left: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
}

/* ============================================================
   HERO
   ------------------------------------------------------------
   Sección principal con imagen + texto + botones.
============================================================ */
.hero {
    padding: 80px 0 60px;
    background: var(--hero-bg);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__content h1 {
    font-size: 3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero__subtitle {
    color: var(--color-muted);
    max-width: 420px;
    margin-bottom: 24px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Imagen redonda del hero */
.hero-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid var(--color-border);
}

/* ============================================================
   SECCIONES GENERALES
============================================================ */
.section {
    padding: 60px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.section__text {
    color: var(--color-muted);
    max-width: 640px;
}

/* ============================================================
   GRID
============================================================ */
.grid {
    display: grid;
    gap: 24px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   LISTAS Y EMBEDS
============================================================ */
.list {
    list-style: none;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.list li + li {
    margin-top: 6px;
}

.embed-placeholder {
    border-radius: 10px;
    border: 1px dashed var(--color-border);
    padding: 20px;
    text-align: center;
    color: var(--color-muted);
}

/* ============================================================
   CONTACTO
============================================================ */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact__form {
    background: var(--color-bg-alt);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--color-border);
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ============================================================
   VÍDEOS
============================================================ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================
   RESPONSIVE GENERAL
============================================================ */
@media (max-width: 900px) {

    .hero__inner,
    .contact__inner {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .grid--3 {
        grid-template-columns: 1fr 1fr;
    }

    .hero__content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Botones centrados en móvil */
    .hero__actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE HEADER + MENÚ OVERLAY
   ------------------------------------------------------------
   Menú móvil centrado, pantalla completa, con blur.
============================================================ */
@media (max-width: 768px) {

    .header__inner {
        padding: 4px 0;
    }

    .logo__img {
        height: 100px;
        clip-path: inset(20% 0 20% 0);
    }

    /* MENÚ MÓVIL COMO OVERLAY */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.65);
        backdrop-filter: blur(6px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 999;
    }

    .nav.nav--open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav a {
        font-size: 1.6rem;
        letter-spacing: 0.1em;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
}

