/* ===== VARIABLES ===== */
:root {
    --naranja: #F15A29;
    --naranja-claro: #FF8C5A;
    --naranja-suave: #FFF1EB;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --gris-medio: #E0E0E0;
    --texto: #2C2C2C;
    --texto-suave: #6B6B6B;
    --verde-caries: #7CB342;
    --rojo: #E53935;
    --sombra: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--texto);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-orange { color: var(--naranja); }

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    text-align: center;
    color: var(--texto-suave);
    margin-bottom: 2.5rem;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.btn--primary {
    background: var(--naranja);
    color: var(--blanco);
    box-shadow: 0 4px 12px rgba(241, 90, 41, 0.3);
}

.btn--primary:hover {
    background: var(--naranja-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 90, 41, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--naranja);
    border: 2px solid var(--naranja);
}

.btn--outline:hover {
    background: var(--naranja);
    color: var(--blanco);
}

.btn--small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--sombra);
    z-index: 100;
    padding: 12px 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--texto);
    font-weight: 700;
    font-size: 1.3rem;
}

.header__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.header__nav {
    display: flex;
    gap: 30px;
}

.header__link {
    text-decoration: none;
    color: var(--texto);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.header__link:hover {
    color: var(--naranja);
}

.header__menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.header__menu span {
    width: 25px;
    height: 3px;
    background: var(--naranja);
    border-radius: 3px;
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--naranja-suave) 0%, var(--blanco) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--texto-suave);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__3d {
    width: 100%;
    height: 400px;
}

/* ===== JUEGO ===== */
.juego {
    padding: 80px 0;
    background: var(--gris-claro);
}

.juego__wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    background: var(--blanco);
}

.juego__hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--naranja);
    color: var(--blanco);
    font-weight: 600;
}

.juego__score, .juego__lives {
    font-size: 1rem;
}

.juego__canvas {
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #E3F2FD 0%, #FFFFFF 100%);
    cursor: pointer;
    touch-action: none;
}

/* ===== SERVICIOS ===== */
.servicios {
    padding: 80px 0;
}

.servicios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.servicio {
    background: var(--blanco);
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.servicio:hover {
    transform: translateY(-5px);
    border-color: var(--naranja);
    box-shadow: 0 8px 25px rgba(241, 90, 41, 0.15);
}

.servicio__icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.servicio h3 {
    color: var(--naranja);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.servicio p {
    color: var(--texto-suave);
    font-size: 0.95rem;
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 80px 0;
    background: var(--naranja-suave);
}

.contacto__form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto__form input,
.contacto__form textarea {
    padding: 14px 18px;
    border: 2px solid var(--gris-medio);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--blanco);
}

.contacto__form input:focus,
.contacto__form textarea:focus {
    outline: none;
    border-color: var(--naranja);
}

.contacto__form .btn {
    align-self: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--texto);
    color: var(--blanco);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer__container p {
    margin: 5px 0;
}