* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #ED1C24;
    --black: #000000;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.logo {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
}

.logo span {
    color: var(--red);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo a {
    display: block;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--red);
}

.btn-contacto {
    background: var(--white);
    color: var(--black);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(12px, 1.4vw, 14px);
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background: var(--red);
    color: var(--white);
}

/* ========== MENÚ HAMBURGUESA ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-mobile a:hover {
    color: var(--red);
}

.nav-mobile .btn-contacto-mobile {
    background: var(--red);
    color: var(--white);
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
}

body.menu-open {
    overflow: hidden;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--black) 60%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5%;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 500;
    line-height: 1.0;
    margin-bottom: 30px;
}

.hero p {
    font-size: clamp(15px, 2vw, 25px);
    font-weight: 300;
    line-height: 1.7;
    color: var(--white);
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 40px;
}

.btn-trabajemos {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: clamp(14px, 2vw, 20px) clamp(30px, 4vw, 50px);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 18px);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-trabajemos:hover {
    background: var(--white);
    color: var(--red);
}

/* ===== HERO IMAGE ===== */
.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ========== SOBRE MI SECTION ========== */
.sobre-mi {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--black);
    overflow: hidden;
    padding: 80px 5%;
}

.sobre-mi::before {
    content: 'SOBRE MI';
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(60px, 20vw, 300px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.13);
    white-space: nowrap;
    pointer-events: none;
}

.red-glow-top {
    position: absolute;
    top: 0;
    right: 20%;
    width: 40%;
    height: 200px;
    background: radial-gradient(ellipse at center top, rgba(237, 28, 36, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.decorative-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line-vertical-left {
    position: absolute;
    left: 15%;
    bottom: 0;
    width: 2px;
    height: 40%;
    border-left: 2px dashed var(--red);
    opacity: 0.6;
}

.line-vertical-right {
    position: absolute;
    right: 15%;
    top: 10%;
    width: 2px;
    height: 50%;
    border-right: 2px dashed var(--red);
    opacity: 0.6;
}

.line-horizontal-right {
    position: absolute;
    right: 0;
    top: 60%;
    width: 17%;
    height: 2px;
    border-top: 2px dashed var(--red);
    opacity: 0.6;
}

.dot-red {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
}

.dot-1 {
    right: 15%;
    top: 60%;
    transform: translate(50%, -50%);
}

.sobre-mi-content {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 15%;
}

.sobre-mi-content p {
    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.8;
    font-weight: 400;
    color: var(--white);
}

/* ========== PROYECTOS SECTION ========== */
.proyectos {
    min-height: 100vh;
    padding: 100px 5%;
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.proyectos::before {
    content: 'PROYECTOS';
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(50px, 15vw, 250px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.13);
    white-space: nowrap;
    pointer-events: none;
}

.proyectos-line-top {
    position: absolute;
    left: 15%;
    top: 0;
    width: 2px;
    height: 20%;
    border-left: 2px dashed var(--red);
    opacity: 0.6;
}

.proyectos-dot {
    position: absolute;
    left: 15%;
    top: 20%;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.proyectos-line-bottom {
    position: absolute;
    right: 0;
    bottom: 8%;
    width: 20%;
    height: 2px;
    border-top: 2px dashed var(--red);
    opacity: 0.6;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 15%;
    position: relative;
    z-index: 10;
}

.proyecto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.proyecto-imagen {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-imagen:hover img {
    transform: scale(1.05);
}

.proyecto-btn {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.proyecto-btn:hover {
    color: var(--red);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 6vw, 80px);
    height: clamp(50px, 6vw, 80px);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid var(--black);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
}

.play-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========== PRECIOS SECTION ========== */
.precios {
    min-height: 100vh;
    padding: 100px 5%;
    position: relative;
    background: linear-gradient(180deg, var(--black) 0%, #1a0000 30%, #3d0000 60%, var(--red) 100%);
    overflow: hidden;
}

.precios::before {
    content: 'PRECIOS';
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(50px, 15vw, 250px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.13);
    white-space: nowrap;
    pointer-events: none;
}

.precios-line {
    position: absolute;
    right: 15%;
    top: 0;
    width: 2px;
    height: 12%;
    border-right: 2px dashed var(--red);
    opacity: 0.6;
}

.precios-dot {
    position: absolute;
    right: 15%;
    top: 12%;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(15px, 2vw, 30px);
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 12%;
    position: relative;
    z-index: 10;
    align-items: center;
}

.precio-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(237, 28, 36, 0.5);
    border-radius: 20px;
    padding: clamp(25px, 3vw, 40px) clamp(20px, 2.5vw, 30px);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.precio-card:hover {
    border-color: var(--red);
}

.precio-card.destacado {
    background: var(--red);
    border-color: var(--red);
    min-height: calc(450px + 60px);
}

.precio-nombre {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.precio-valor {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
}

.precio-lista {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.precio-lista li {
    padding: 6px 0;
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 300;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.precio-lista li::before {
    content: '•';
    color: var(--red);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.precio-card.destacado .precio-lista li::before {
    color: var(--white);
}

.btn-comprar {
    display: block;
    background: var(--white);
    color: var(--black);
    padding: clamp(12px, 1.5vw, 15px) 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(12px, 1.3vw, 14px);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    background: var(--black);
    color: var(--white);
}

/* ========== CONTACTO SECTION ========== */
.contacto {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(180deg, var(--red) 0%, #5a0000 50%, var(--black) 100%);
    overflow: hidden;
    padding: 100px 5% 60px;
}

.contacto-content {
    position: relative;
    z-index: 10;
}

.contacto h2 {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 500;
    line-height: 1.1;
    max-width: 600px;
}

.contacto-bg-text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(80px, 25vw, 400px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.13);
    letter-spacing: 20px;
    white-space: nowrap;
    pointer-events: none;
}

.contacto-social {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.contacto-social span {
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 400;
}

.social-line {
    width: clamp(40px, 8vw, 100px);
    height: 2px;
    background: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--white);
    color: var(--red);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* ========== FOOTER ========== */
footer {
    background: var(--black);
    padding: 25px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: clamp(11px, 1.3vw, 14px);
    color: rgba(255, 255, 255, 0.5);
}

footer a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* ========== BOTÓN WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* ========== SEO: ACCESIBILIDAD ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}


/* ==========================================================
   RESPONSIVE - TABLET (1024px)
   ========================================================== */
@media (max-width: 1024px) {
    .proyectos-grid,
    .precios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .precio-card.destacado {
        min-height: 450px;
    }

    .hero-content {
        max-width: 55%;
    }
}

/* ==========================================================
   RESPONSIVE - MÓVIL / TABLET PEQUEÑA (768px)
   ========================================================== */
@media (max-width: 768px) {
    /* --- Header --- */
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* --- HERO: Layout móvil con imagen de fondo completa --- */
    .hero {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
    }

    .hero::before {
        width: 100%;
        height: 100%;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 35%,
            rgba(0, 0, 0, 0.8) 65%,
            var(--black) 100%
        );
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .hero-content {
        position: relative;
        z-index: 10;
        text-align: center;
        max-width: 100%;
        padding: 0 7% 15%;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 44px);
        margin-bottom: 20px;
    }

    .hero p {
        margin: 0 auto 30px;
        font-size: clamp(14px, 3.5vw, 18px);
        max-width: 90%;
    }

    .btn-trabajemos {
        font-size: 15px;
        padding: 14px 35px;
    }

    /* --- Sobre mí --- */
    .sobre-mi {
        min-height: auto;
        padding: 80px 7%;
    }

    .sobre-mi-content {
        margin-top: 10%;
    }

    .sobre-mi-content p {
        font-size: clamp(15px, 4vw, 20px);
    }

    /* --- Proyectos --- */
    .proyectos {
        min-height: auto;
        padding: 80px 5%;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding-top: 25%;
        gap: 40px;
    }

    .proyecto-imagen {
        max-width: 100%;
    }

    .proyecto-btn {
        font-size: 16px;
    }

    /* --- Precios --- */
    .precios {
        min-height: auto;
        padding: 80px 5%;
    }

    .precios-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding-top: 20%;
        gap: 25px;
    }

    .precio-card,
    .precio-card.destacado {
        min-height: auto;
        padding: 30px 25px;
    }

    .precio-nombre {
        font-size: 16px;
    }

    .precio-valor {
        font-size: 28px;
    }

    .precio-lista li {
        font-size: 14px;
    }

    .btn-comprar {
        font-size: 13px;
        padding: 14px 30px;
    }

    /* --- Contacto --- */
    .contacto {
        padding: 80px 7% 40px;
        min-height: 80vh;
    }

    .contacto h2 {
        text-align: center;
        font-size: clamp(26px, 7vw, 40px);
    }

    .contacto-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* --- Decorativas: ocultar en móvil --- */
    .decorative-lines {
        display: none;
    }

    .proyectos-line-top,
    .proyectos-dot,
    .proyectos-line-bottom,
    .precios-line,
    .precios-dot {
        display: none;
    }

    /* --- WhatsApp flotante --- */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================
   RESPONSIVE - MÓVIL (480px)
   ========================================================== */
@media (max-width: 480px) {
    .hero-content {
        padding: 0 5% 20%;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .btn-trabajemos {
        font-size: 14px;
        padding: 13px 30px;
    }

    .sobre-mi {
        padding: 60px 5%;
    }

    .sobre-mi::before {
        font-size: clamp(50px, 18vw, 120px);
        top: 15%;
    }

    .sobre-mi-content {
        margin-top: 5%;
    }

    .sobre-mi-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .proyectos,
    .precios {
        padding: 60px 5%;
    }

    .proyectos-grid {
        padding-top: 30%;
        max-width: 100%;
    }

    .precios-grid {
        padding-top: 25%;
        max-width: 100%;
    }

    .precio-card,
    .precio-card.destacado {
        padding: 25px 20px;
    }

    .precio-valor {
        font-size: 26px;
    }

    .contacto {
        padding: 60px 5% 30px;
    }

    .contacto h2 {
        font-size: 26px;
    }

    .contacto-bg-text {
        font-size: clamp(60px, 20vw, 150px);
        letter-spacing: 10px;
    }

    .contacto-social span {
        font-size: 14px;
    }

    .social-line {
        width: 30px;
    }

    footer p {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* ==========================================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO (360px)
   ========================================================== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 13px;
    }

    .btn-trabajemos {
        font-size: 13px;
        padding: 12px 25px;
    }

    .precio-valor {
        font-size: 24px;
    }

    .precio-lista li {
        font-size: 13px;
    }

    .contacto h2 {
        font-size: 24px;
    }

    .nav-mobile a {
        font-size: 20px;
    }

    .nav-mobile .btn-contacto-mobile {
        font-size: 16px;
        padding: 12px 40px;
    }
}