@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700&display=swap');

:root {
    --black: #000000;
    --orange: #FF8C42;
    --white: #FFFFFF;
    --gray: #1A1A1A;
}

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

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 4px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--orange);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--orange);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--orange);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 60%, var(--black) 100%);
    z-index: 1;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--orange);
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    border: 2px solid var(--orange);
}

.btn:hover {
    background-color: transparent;
    color: var(--orange);
}

/* About Section */
.section {
    padding: 8rem 10%;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 5rem;
    color: var(--orange);
    font-family: 'Space Mono', monospace;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background-color: var(--orange);
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.about-image {
    flex: 1;
    position: relative;
}

.fpv-drone {
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Portfolio Section */
.portfolio {
    background-color: var(--gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%; /* ocupa solo la mitad superior */
    padding: 1.5rem;
    background: transparent;
    transition: top 0.3s;
    pointer-events: none; /* no bloquea clics debajo */
    text-shadow: 4px 4px 10px rgb(0, 0, 0);
}

.portfolio-item:hover .portfolio-overlay {
    top: 0;
    pointer-events: auto; /* activa eventos solo al mostrar */
}

.portfolio-overlay h3 {
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Equipment Section */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.equipment-card {
    background-color: var(--gray);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

.equipment-card:hover {
    transform: translateY(-10px);
}

.equipment-icon {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.equipment-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.equipment-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background-color: var(--gray);
}

.contact-container {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--orange);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--orange);
    margin-right: 1rem;
    width: 50px;
    text-align: center;
}

.contact-form {
    flex: 1;
    padding: 2rem;
    background-color: var(--black);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--orange);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #2a2a2a;
    border: none;
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--orange);
    color: var(--black);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--black);
    border-top: 1px solid var(--gray);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray);
    color: var(--white);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--orange);
    transform: translateY(-5px);
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.logo img {
    height: 70px;
    border-radius: 60px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--white);
        cursor: pointer;
    }
    .portfolio-grid {
    grid-template-columns: 1fr; /* 1 columna en móvil */
    }

    .video-container iframe {
    height: 350px; /* más bajo en móviles */
    }
    
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.5s;
}
.portfolio-item.video-item:hover .video-container iframe {
    transform: scale(1.05);
}
.portfolio-item.video-item {
    height: auto;
}
.portfolio-item.video-item .portfolio-overlay {
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-item.video-item:hover .portfolio-overlay {
    opacity: 1;
}


.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 101;
}

/* Mostrar en móvil */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--black);
        width: 200px;
        padding: 1rem;
        border-radius: 8px;
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}


        /* Sección de Contacto Mejorada */
        .contact-section {
            padding: 6rem 10%;
            background-color: var(--gray);
        }

        .contact-container {
            display: flex;
            gap: 4rem;
        }

        .contact-info {
            flex: 1;
        }

        .contact-info h3 {
            font-size: 2rem;
            color: var(--orange);
            margin-bottom: 2rem;
            font-family: 'Space Mono', monospace;
        }

        .contact-details {
            background-color: rgba(0, 0, 0, 0.3);
            padding: 2rem;
            border-radius: 10px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.8rem;
            padding: 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background-color: rgba(255, 140, 66, 0.1);
            transform: translateX(10px);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background-color: var(--orange);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 1.5rem;
            color: var(--black);
            font-size: 1.3rem;
        }

        .contact-text h4 {
            font-size: 1.2rem;
            margin-bottom: 0.3rem;
            color: var(--white);
        }

        .contact-text a, .contact-text p {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
        }

        .contact-text a:hover {
            color: var(--orange);
        }

        .social-links-contact {
            display: flex;
            margin-top: 2rem;
            gap: 1rem;
            margin-left: auto;
        }
        .social-link {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--orange);
            color: var(--black);
            transition: all 0.3s;
        }

        .social-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
        }

        .contact-image {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .contact-image img {
            width: 100%;
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        /* Responsive */
 @media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem; /* opcional: más aire entre bloques en móvil */
    }

    .contact-item {
    display: flex;
    flex-direction: column; /* ícono arriba, texto debajo */
    align-items: center;
    text-align: center;
    margin-bottom: 1.8rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        background-color: var(--orange);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 0 0.5rem 0;  /* margen debajo del ícono */
        color: var(--black);
        font-size: 1.3rem;
    }

    .contact-image {
        order: -1;
        margin-bottom: 2rem;
    }
}
