/* ================= PROJECT DETAIL PAGE ================= */

.project-detail-page {
    background: var(--brand-black);
    color: var(--brand-white);
}

/* ================= HERO ================= */

.project-detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 90px 7%;
}

.project-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.25) 100%),
        linear-gradient(180deg, rgba(0,0,0,.25), var(--brand-black));
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.back-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--brand-red-light);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 28px;
}

.project-hero-content h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.project-hero-content p {
    max-width: 620px;
    color: rgba(255,255,255,.86);
    font-size: 1.15rem;
    line-height: 1.8;
}

.project-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

/* ================= BOTONES ================= */

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: .3s ease;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
    color: var(--brand-white);
    box-shadow: 0 0 18px rgba(241, 56, 17, .45);
}

.primary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(241, 56, 17, .75);
}

/* ================= TABS ================= */

.project-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 7%;
    background: rgba(15,15,15,.95);
    border-bottom: 1px solid rgba(255,106,69,.25);
    backdrop-filter: blur(12px);
    overflow-x: auto;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 22px 28px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: .3s;
}

.tab-link:hover,
.tab-link.active {
    color: var(--brand-red-light);
    border-color: var(--brand-red-light);
    background: rgba(241, 56, 17, .08);
}

/* ================= SECCIONES ================= */

.project-section {
    padding: 70px 7%;
    background:
        radial-gradient(circle at 10% 20%, rgba(241,56,17,.07), transparent 30%),
        var(--brand-black);
}

.project-grid-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

/* ================= DESCRIPCIÓN Y VIDEO SIN CUADROS ================= */

.project-info-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.project-info-box h2,
.section-heading-left h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.project-info-box h2::after,
.section-heading-left h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 14px;
    background: var(--brand-red-light);
    border-radius: 10px;
}

.project-info-box p,
.section-heading-left p {
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin-bottom: 18px;
}

.project-video-box {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 16px;
    overflow: hidden;
    min-height: auto;
}

.project-video-box video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ================= MINI FEATURES ================= */

.project-mini-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.project-mini-features div {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,106,69,.18);
    background: rgba(255,255,255,.04);
}

.project-mini-features i {
    color: var(--brand-red-light);
    font-size: 22px;
    margin-bottom: 10px;
}

.project-mini-features strong,
.project-mini-features span {
    display: block;
}

.project-mini-features span {
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

/* ================= NUESTRA FLOTA DE DRONES ================= */

.drone-fleet-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(241, 56, 17, 0.08), transparent 30%),
        var(--brand-black);
}

.fleet-heading {
    max-width: 850px;
    margin-bottom: 45px;
}

.fleet-heading span {
    color: var(--brand-red-light);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.fleet-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--brand-white);
    text-transform: uppercase;
    margin: 10px 0 18px;
}

.fleet-heading p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    line-height: 1.8;
}

.drone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.drone-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(241,56,17,.045)),
        var(--brand-gray);
    border: 1px solid rgba(255, 106, 69, 0.22);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.drone-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-red-light);
    box-shadow: 0 28px 65px rgba(241, 56, 17, 0.18);
}

.drone-card-image {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.drone-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75) 100%),
        radial-gradient(circle at 20% 10%, rgba(241,56,17,.18), transparent 35%);
}

.drone-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.85) contrast(1.1);
    transition: transform .5s ease, filter .5s ease;
}

.drone-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.35s;
}

/* =======================
   GALERÍA DE DRONES
======================= */

.drone-slider{
    cursor:pointer;
}

.drone-main-img{
    transition:opacity .3s ease;
}

.drone-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:46px;
    height:46px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.25);
    background:rgba(0,0,0,.55);
    color:white;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:5;
    transition:.3s;
}

.drone-arrow:hover{
    background:var(--brand-red);

}
.drone-prev{
    left:18px;
    
}
.drone-next{
    right:18px;
}

.drone-dots{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:6;

}

.drone-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:rgba(255,255,255,.45);
    transition:.3s;
    cursor:pointer;

}

.drone-dot.active{
    background:var(--brand-red-light);
    transform:scale(1.3);
}

.drone-card:hover .drone-card-image img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.18);
}

.drone-card-content {
    padding: 28px;
}

.drone-type {
    display: block;
    color: var(--brand-red-light);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.drone-card-content h3 {
    color: var(--brand-white);
    font-size: 1.55rem;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.drone-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.drone-spec {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.drone-spec i {
    color: var(--brand-red-light);
    font-size: 19px;
}

.drone-spec strong {
    display: block;
    color: var(--brand-white);
    font-size: 15px;
}

.drone-spec span {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

.drone-card-content > span:last-child {
    display: block;
    color: rgba(255,255,255,.68);
    line-height: 1.7;
    font-size: 14px;
    margin-top: 10px;
}

/* ================= CARRUSEL DE IMÁGENES POR DRON ================= */

.drone-slider {
    cursor: pointer;
}

.drone-main-img {
    transition:
        opacity .28s ease,
        transform .5s ease,
        filter .5s ease;
}

.drone-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);

    background: rgba(0,0,0,.55);
    color: var(--brand-white);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: .3s ease;
}

.drone-arrow:hover {
    background: var(--brand-red);
    box-shadow: 0 0 18px rgba(241,56,17,.65);
}

.drone-prev {
    left: 18px;
}

.drone-next {
    right: 18px;
}

.drone-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.drone-dot {
    width: 10px;
    height: 10px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.45);
    cursor: pointer;

    transition: .3s ease;
}

.drone-dot.active {
    background: var(--brand-red-light);
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(255,106,69,.85);
}
/* ================= APLICACIONES ================= */

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.application-card {
    padding: 28px;
    text-align: center;
    transition: .3s;
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(241,56,17,.045)),
        var(--brand-gray);
    border: 1px solid rgba(255,106,69,.18);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,0,0,.28);
}

.application-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-red-light);
    box-shadow: 0 20px 45px rgba(241,56,17,.16);
}

.application-card i {
    font-size: 34px;
    color: var(--brand-red-light);
    margin-bottom: 18px;
}

.application-card h3 {
    margin-bottom: 12px;
}

.application-card p {
    color: rgba(255,255,255,.68);
    line-height: 1.6;
}

/* ================= CTA ================= */

.project-cta {
    margin: 70px 7% 100px;
    padding: 42px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(241,56,17,.18), rgba(255,106,69,.08)),
        var(--brand-gray);
    border: 1px solid rgba(255,106,69,.28);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.project-cta span {
    color: var(--brand-red-light);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.project-cta h2 {
    font-size: 2rem;
    margin-top: 8px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    .project-grid-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .drone-grid {
        grid-template-columns: 1fr;
    }

    .drone-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .drone-card-image {
        height: 100%;
        min-height: 330px;
    }

    .gallery-grid,
    .applications-grid,
    .project-mini-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .project-detail-hero {
        min-height: auto;
        padding: 70px 24px;
    }

    .project-hero-content h1 {
        font-size: 3rem;
    }

    .project-hero-content p {
        font-size: 1rem;
    }

    .project-section {
        padding: 50px 24px;
    }

    .project-tabs {
        justify-content: flex-start;
        padding: 0 20px;
    }

    .tab-link {
        padding: 18px 20px;
    }

    .drone-card {
        display: block;
    }

    .drone-card-image {
        height: 240px;
        min-height: auto;
    }

    .drone-specs,
    .gallery-grid,
    .applications-grid,
    .project-mini-features {
        grid-template-columns: 1fr;
    }

    .project-cta {
        margin: 50px 24px 70px;
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-action {
        width: 100%;
    }
}
.drone-main-img {
    transition: opacity .25s ease, transform .5s ease, filter .5s ease;
}

/* ================= LIGHTBOX DRONES ================= */

.drone-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.drone-lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255, 106, 69, .35);
    box-shadow: 0 0 40px rgba(241, 56, 17, .25);
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 35px;
    background: transparent;
    border: none;
    color: var(--brand-white);
    font-size: 32px;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.55);
    color: var(--brand-white);
    cursor: pointer;
    font-size: 20px;
    transition: .3s;
}

.lightbox-arrow:hover {
    background: var(--brand-red);
    box-shadow: 0 0 20px rgba(241,56,17,.65);
}

.lightbox-prev {
    left: 45px;
}

.lightbox-next {
    right: 45px;
}

.lightbox-dots {
    position: absolute;
    bottom: 28px;
    display: flex;
    gap: 10px;
}

.lightbox-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
}

.lightbox-dot.active {
    background: var(--brand-red-light);
    box-shadow: 0 0 10px rgba(255,106,69,.85);
}