/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #1a1a1a, #000);
    color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 80px 0;
}

h1, h2 {
    font-weight: 700;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s ease;
    display: inline-block;
}

.btn.primary {
    background: #ff7a18;
    color: #000;
}

.btn.primary:hover {
    background: #ffa44d;
}

.btn.secondary {
    border: 2px solid #ff7a18;
    color: #ff7a18;
}

.btn.secondary:hover {
    background: #ff7a18;
    color: #000;
}
/* ================= HEADER ================= */

.header {
    background: #0b0b0b;
    height: 85px;              /* altura fija */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0,0,0,.6);
    display: flex;
    align-items: center;       /* centra vertical */
}

/* Quita centrado global si lo tienes */
.header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 25px;           /* controla espacio lateral */
    margin: 0;                 /* evita que se mueva */
}

/* CONTENIDO HEADER */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* LOGO */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;            /* evita que se comprima */
}

.logo-section img {
    height: 100px;              /* controla tamaño real */
    width: auto;               /* evita que se estire */
    display: block;
    object-fit: contain;
}

/* TEXTO LOGO */
.logo-text h1 {
    font-size: 13px;
    color: #ff6a00;
    margin: 0;
}

.logo-text span {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 2px;
}
/* ================= LOGO RESPONSIVE ================= */

/* 💻 Laptop / Desktop */
.logo-text h1 {
    font-size: 22px;
}

.logo-text span {
    font-size: 12px;
}

/* 📱 Teléfonos */
@media (max-width: 768px) {

    .header {
        height: 80px;   /* un poco más compacto en móvil */
    }

    .logo-section img {
        height: 55px;   /* logo un poco más pequeño */
    }

    .logo-text h1 {
        font-size: 15px;   /* texto más pequeño */
    }

    .logo-text span {
        font-size: 9px;
        letter-spacing: 1px;
    }

}

/* NAV DESKTOP */
.nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: .3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6a00;
    transition: width .3s ease;
}

.nav a:hover {
    color: #ff6a00;
}

.nav a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #fff;
}

/* ================= HERO ================= */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)),
    url('../img/fondo.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    color: #ff7a18;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ================= SERVICES ================= */
.services h2 {
    text-align: center;
    color: #ff7a18;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #111;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: .3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,.4);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255,122,24,.25);
}

/* ================= FEATURED SLIDER ================= */

.slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.slider img {
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.slider img:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .slider img {
        height: 220px;
    }
}

/* ================= BEFORE AFTER ================= */
/* ================= BEFORE & AFTER VIDEOS PRO ================= */

.before-after-section {
    background:#111;
    padding:100px 0;
    text-align:center;
}

.project-block{
    margin-top:60px;
}

.project-block h3{
    margin-bottom:25px;
    color:#ff7a18;
}

/* GRID */
.before-after-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
}

/* CONTENEDOR VIDEO */
.video-box{
    position:relative;
    width:100%;
    border-radius:20px;
    overflow:hidden;
    background:#000;
    box-shadow:0 15px 35px rgba(0,0,0,.5);
    transition:.35s ease;
}

/* PROPORCION REAL (NO ESTIRA) */
.video-box iframe{
    width:100%;
    height:100%;
    aspect-ratio:16/9;
    border:0;
}

/* videos verticales se adaptan solos */
.video-box iframe[src*="youtube"]{
    object-fit:contain;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width:1024px){
    .before-after-grid{
        gap:25px;
    }
}

/* Mobile */
@media (max-width:768px){

    .before-after-grid{
        grid-template-columns:1fr;
    }

    .video-box{
        aspect-ratio:9/16;
        max-width:420px;
        margin:auto;
    }
}

/* Small phones */
@media (max-width:480px){
    .video-box{
        max-width:100%;
    }
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 30px 0;
}

/* ================================================= */
/* ================= RESPONSIVE ==================== */
/* ================================================= */

@media (max-width: 1024px) {
    .hero h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0b0b0b;
        padding: 20px 0;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header-content {
        flex-direction: row;
    }

    .hero {
        height: auto;
        padding: 120px 0;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 24px;
    }
}
/* ================= GALLERY PAGE ================= */

.gallery-page {
    padding: 100px 0;
    background: #0f0f0f;
    text-align: center;
}

.section-title {
    font-size: 36px;
    color: #ff7a18;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #aaa;
    margin-bottom: 50px;
}

/* ================= GALLERY GRID UNIFORME ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    height: 260px; /* 👈 altura fija profesional */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 👈 CLAVE */
    border-radius: 18px;
    transition: transform .4s ease, filter .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* Responsive masonry */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }
}
/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 15px;
    animation: zoomIn .3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ================= PREMIUM MULTI SLIDER ================= */

/* ================= PREMIUM RESPONSIVE SLIDER ================= */

.slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 16px;
    transition: transform .6s cubic-bezier(.77,0,.18,1);
}

.slider-track .slide {
    flex: 0 0 25%;
    height: 240px;
    overflow: hidden;
    border-radius: 18px;
}

.slider-track .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.slider-track .slide:hover img {
    transform: scale(1.05);
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
    .slider-track .slide {
        flex: 0 0 33.333%;
        height: 220px;
    }
}

/* ===== Tablet pequeña ===== */
@media (max-width: 768px) {
    .slider-track .slide {
        flex: 0 0 50%;
        height: 200px;
    }
}

/* ===== Celular ===== */
@media (max-width: 480px) {
    .slider-track .slide {
        flex: 0 0 100%;
        height: 220px;
    }
}

/* ================= SLIDER ARROWS MEJORADAS ================= */

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border-radius:50%;
    border:none;
    backdrop-filter:blur(14px);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
    z-index:5;
}

.slider-btn:hover{
    background:#00c3ff;
    transform:translateY(-50%) scale(1.1);
    box-shadow:0 0 25px rgba(0,195,255,.6);
}

/* Click animado */
.slider-btn:active {
    transform: translateY(-50%) scale(.9);
}

/* Posiciones */
.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }
}
/* ================= CINEMATIC VIDEO STYLE ================= */

.video-box{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    border-radius:22px;
    overflow:hidden;
    background:#000;
    cursor:pointer;
    transform:scale(1);
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        box-shadow .45s ease;
}

/* efecto premium */
.video-box:hover{
    transform:scale(1.03);
    box-shadow:0 25px 60px rgba(0,0,0,.65);
}

/* iframe perfecto */
.video-box iframe{
    width:100%;
    height:100%;
    border:0;
    pointer-events:none;
}

/* gradiente cinematic */
.video-box::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.45),
        transparent 40%
    );
    opacity:.7;
    transition:.4s;
}

.video-box:hover::after{
    opacity:.2;
}
/* ================= BEFORE AFTER PRO ================= */

.compare-container{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    border-radius:22px;
}

.compare-video{
    position:absolute;
    inset:0;
}

.compare-video iframe{
    width:100%;
    height:100%;
    border:0;
}

.compare-video.after{
    width:50%;
    overflow:hidden;
}

.compare-slider{
    position:absolute;
    top:0;
    left:50%;
    width:4px;
    height:100%;
    background:#00c3ff;
    cursor:ew-resize;
    z-index:10;
}
/* ===== BEFORE AFTER PRO ===== */

.before-after-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
    margin-top:30px;
}

.video-box{
    position:relative;
    border-radius:18px;
    overflow:hidden;
    background:#000;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.video-box iframe{
    width:100%;
    height:100%;
    aspect-ratio:16/9;
    border:none;
    pointer-events:none;
}

/* etiquetas */
.label{
    position:absolute;
    top:15px;
    left:15px;
    padding:6px 14px;
    font-size:13px;
    font-weight:600;
    border-radius:20px;
    color:#fff;
    z-index:2;
}

.label.before{ background:#ff3b3b; }
.label.after{ background:#00c853; }

/* hover activa controles */
.video-box:hover iframe{
    pointer-events:auto;
}

/* MOBILE */
@media(max-width:768px){
    .before-after-grid{
        grid-template-columns:1fr;
    }
}
/* ===== ABOUT PRO SECTION ===== */

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:20px;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.about-text{
    margin:20px 0;
    line-height:1.7;
    opacity:.9;
}

.about-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:25px 0;
    font-weight:500;
}

.about-features div{
    background:rgba(255,255,255,.05);
    padding:10px 14px;
    border-radius:10px;
}

.about-buttons{
    display:flex;
    gap:15px;
    margin-top:20px;
}

/* MOBILE */
@media(max-width:900px){
    .about-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .about-features{
        grid-template-columns:1fr;
    }

    .about-buttons{
        justify-content:center;
    }
}