/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0b;
    color: white;
    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}

.logo span {
    font-weight: 300;
    margin-left: 5px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #999;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}


/* =========================================================
   HERO / INICIO
   ========================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 10%;
    text-align: center;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.35)
        ),
        url("img/portada.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   LOGO PRINCIPAL DEL INICIO
   ========================================================= */

.hero-logo {
    display: block;

    /* CENTRADO */
    width: 850px;
    max-width: 85vw;
    height: auto;
    object-fit: contain;

    /* Centrar imagen */
    margin: 0 auto 25px auto;
}


/* Compatibilidad por si todavía existe .brand-hero */

.brand-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.brand-hero img {
    display: block;
    width: 850px;
    max-width: 85vw;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}


/* =========================================================
   TEXTO HERO
   ========================================================= */

.hero-text {
    max-width: 500px;
    margin: 35px auto;
    color: #bbb;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-block;
    padding: 16px 30px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.btn:hover {
    background: white;
    color: black;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 130px 10%;
}

.section-title {
    margin-bottom: 70px;
}

.section-title p {
    color: #888;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: clamp(40px, 7vw, 80px);
}


/* =========================================================
   NOSOTROS
   ========================================================= */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    font-size: 22px;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 25px;
}

.about-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-number strong {
    font-size: 120px;
}

.about-number span {
    color: #888;
    letter-spacing: 3px;
}


/* =========================================================
   PROYECTOS
   ========================================================= */

.projects {
    background: #111;
}

.projects-container {
    position: relative;
    width: 100%;
}

.project-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.project-slider::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   FLECHAS
   ========================================================= */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 25px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.project-card {
    position: relative;
    flex: 0 0 33.333%;
    height: 500px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: grab;
}

.project-card:active {
    cursor: grabbing;
}


/* =========================================================
   IMÁGENES
   ========================================================= */

.project-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}


/* =========================================================
   INFORMACIÓN PROYECTOS
   ========================================================= */

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.9)
        );
    pointer-events: none;
}

.project-info p {
    color: #aaa;
    font-size: 11px;
    letter-spacing: 3px;
}

.project-info h3 {
    margin-top: 8px;
    font-size: 25px;
    color: white;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #333;
}

.service {
    min-height: 250px;
    padding: 50px;
    background: #0b0b0b;
}

.service span {
    color: #777;
    font-size: 13px;
}

.service h3 {
    margin: 25px 0 15px;
    font-size: 28px;
}

.service p {
    max-width: 450px;
    color: #999;
    line-height: 1.7;
}


/* =========================================================
   BOTÓN SERVICIOS
   ========================================================= */

.service-btn {
    margin-top: 25px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #555;
    color: white;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s ease;
}

.service-btn:hover {
    background: white;
    color: black;
    border-color: white;
}


/* =========================================================
   DETALLES SERVICIOS
   ========================================================= */

.service-details {
    display: none;
}

.service-details.active {
    display: block;
}

.service-details p {
    margin-top: 25px;
    color: #999;
    line-height: 1.7;
}

.service-details ul {
    margin-top: 15px;
    padding-left: 20px;
    color: #999;
    line-height: 2;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 10%;
    background: #eaeaea;
    color: #080808;
}

.contact-content {
    width: 100%;
    max-width: 1000px;
}

.contact-content > p {
    font-size: 12px;
    letter-spacing: 5px;
}

.contact h2 {
    margin: 30px 0 50px;
    font-size: clamp(60px, 10vw, 140px);
    line-height: 0.9;
    font-weight: 900;
}

.contact h2 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px #080808;
}


/* =========================================================
   FORMULARIO WEB3FORMS
   ========================================================= */

.contact-form {
    width: 100%;
    max-width: 850px;
    margin: 60px auto 0;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 15px;
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    color: #080808;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom: 2px solid #080808;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form select {
    cursor: pointer;
}


/* Placeholder */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}


/* Botón formulario */

.contact-form button {
    margin-top: 15px;
    padding: 16px 35px;
    background: #f0eded;
    border: 1px solid #080808;
    color: rgb(0, 0, 0);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: transparent;
    color: #000000;
}


/* =========================================================
   BOTÓN CONTACTO ANTIGUO
   ========================================================= */

.contact .btn {
    border-color: #080808;
    color: #080808;
}

.contact .btn:hover {
    background: #080808;
    color: white;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 10%;
    border-top: 1px solid #222;
}

.footer-logo {
    font-weight: bold;
    letter-spacing: 2px;
}

.social {
    display: flex;
    gap: 20px;
}

.social a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.social a:hover {
    color: white;
}

footer p {
    width: 100%;
    color: #666;
    font-size: 12px;
}


/* =========================================================
   MODAL HISTORIA
   ========================================================= */

.history-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.history-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   CAJA HISTORIA
   ========================================================= */

.history-box {
    position: relative;
    width: min(1000px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #0b0b0b;
    border: 1px solid #333;
    padding: 60px;
    color: white;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.history-modal.active .history-box {
    transform: scale(1);
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.history-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #444;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.history-close:hover {
    background: white;
    color: black;
}


/* =========================================================
   CABECERA HISTORIA
   ========================================================= */

.history-header {
    margin-bottom: 40px;
}

.history-header p {
    color: #888;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.history-header h2 {
    margin: 0;
    font-size: clamp(45px, 7vw, 80px);
    line-height: 0.85;
}

.history-header h2 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px white;
}


/* =========================================================
   CONTENIDO HISTORIA
   ========================================================= */

.history-modal .history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}


/* =========================================================
   IMAGEN HISTORIA
   ========================================================= */

.history-modal .history-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.history-modal .history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================================
   TEXTO HISTORIA
   ========================================================= */

.history-modal .history-text {
    color: #aaa;
    font-size: 16px;
    line-height: 1.8;
}

.history-modal .history-text p {
    margin-bottom: 25px;
}

.history-modal .history-intro {
    color: white;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.3;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .project-card {
        flex: 0 0 50%;
    }

    /* Logo */

    .hero-logo,
    .brand-hero img {
        width: 700px;
        max-width: 85vw;
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================================================
   TABLETS Y CELULARES
   ========================================================= */

@media (max-width: 800px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .navbar {
        height: 70px;
        padding: 0 20px;
    }

    .logo {
        font-size: 17px;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 25px 20px;
        background: rgba(11, 11, 11, 0.98);
    }

    nav.active {
        display: flex;
    }

    nav a {
        font-size: 14px;
    }

    .menu-btn {
        display: block;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        min-height: 100vh;
        padding: 100px 25px 60px;
        background-position: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }


    /* =====================================================
       LOGO HERO TABLET
       ===================================================== */

    .hero-logo,
    .brand-hero img {
        width: 600px;
        max-width: 88vw;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       TEXTO HERO
       ===================================================== */

    .hero-text {
        max-width: 100%;
        margin: 25px auto;
        font-size: 15px;
        line-height: 1.6;
    }


    /* =====================================================
       BOTONES
       ===================================================== */

    .btn {
        padding: 14px 22px;
        font-size: 11px;
    }


    /* =====================================================
       SECCIONES
       ===================================================== */

    .section {
        padding: 80px 25px;
    }

    .section-title {
        margin-bottom: 45px;
    }

    .section-title p {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .section-title h2 {
        font-size: clamp(38px, 12vw, 60px);
    }


    /* =====================================================
       NOSOTROS
       ===================================================== */

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        font-size: 18px;
        line-height: 1.7;
    }

    .about-number {
        align-items: flex-start;
    }

    .about-number strong {
        font-size: 80px;
    }

    .about-number span {
        font-size: 12px;
    }


    /* =====================================================
       PROYECTOS
       ===================================================== */

    .project-card {
        flex: 0 0 100%;
        height: 450px;
    }

    .project-card img {
        height: 450px;
    }

    .project-info {
        padding: 25px;
    }

    .project-info h3 {
        font-size: 22px;
    }


    /* =====================================================
       FLECHAS
       ===================================================== */

    .slider-btn {
        display: none;
    }

    .project-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .project-slider::-webkit-scrollbar {
        display: none;
    }


    /* =====================================================
       SERVICIOS
       ===================================================== */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .service {
        min-height: auto;
        padding: 35px 25px;
    }

    .service h3 {
        margin: 20px 0 12px;
        font-size: 24px;
    }

    .service p {
        font-size: 15px;
        line-height: 1.6;
    }

    .service-details p {
        font-size: 14px;
    }

    .service-details ul {
        font-size: 14px;
    }


    /* =====================================================
       CONTACTO
       ===================================================== */

    .contact {
        min-height: auto;
        padding: 80px 25px;
    }

    .contact-content {
        width: 100%;
        max-width: 100%;
    }

    .contact-content > p {
        font-size: 9px;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .contact h2 {
        margin: 20px 0 35px;
        font-size: clamp(38px, 11vw, 60px);
        line-height: 0.95;
        letter-spacing: -1px;
    }

    .contact h2 span {
        -webkit-text-stroke: 1px #080808;
    }


    /* =====================================================
       FORMULARIO TABLET
       ===================================================== */

    .contact-form {
        margin-top: 45px;
        max-width: 100%;
    }

    .contact-form .form-group {
        margin-bottom: 20px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 15px 10px;
        font-size: 15px;
    }

    .contact-form textarea {
        min-height: 140px;
    }

    .contact-form button {
        width: 100%;
        padding: 16px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        flex-direction: column;
        align-items: center;
        padding: 40px 25px;
        text-align: center;
    }

    .footer-logo {
        font-size: 16px;
    }

    .social {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .social a {
        font-size: 14px;
    }

    footer p {
        text-align: center;
        line-height: 1.5;
    }


    /* =====================================================
       MODAL
       ===================================================== */

    .history-modal {
        padding: 20px;
    }

    .history-box {
        padding: 50px 25px 30px;
        max-height: 90vh;
    }

    .history-modal .history-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-modal .history-image {
        height: 280px;
    }

    .history-modal .history-text {
        font-size: 15px;
    }


    /* =====================================================
       TEXTO OUTLINE EN CELULAR
       ===================================================== */

    .contact h2 span {
        color: #080808;
        -webkit-text-stroke: 0;
        text-shadow: none;
    }

    .history-header h2 span {
        color: white;
        -webkit-text-stroke: 0;
        text-shadow: none;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .navbar {
        padding: 0 15px;
    }

    .logo {
        font-size: 15px;
        letter-spacing: 1px;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }


    /* =====================================================
       LOGO HERO CELULAR
       ===================================================== */

    .hero-logo,
    .brand-hero img {
        width: 100%;
        max-width: 360px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       TEXTO HERO
       ===================================================== */

    .hero-text {
        font-size: 14px;
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       SECCIONES
       ===================================================== */

    .section {
        padding: 70px 20px;
    }

    .section-title h2 {
        font-size: 42px;
    }


    /* =====================================================
       NOSOTROS
       ===================================================== */

    .about-content {
        font-size: 17px;
    }

    .about-number strong {
        font-size: 65px;
    }


    /* =====================================================
       PROYECTOS
       ===================================================== */

    .project-card {
        height: 350px;
    }

    .project-card img {
        height: 350px;
    }


    /* =====================================================
       SERVICIOS
       ===================================================== */

    .service {
        padding: 30px 20px;
    }

    .service h3 {
        font-size: 22px;
    }


    /* =====================================================
       CONTACTO
       ===================================================== */

    .contact {
        min-height: auto;
        padding: 70px 18px;
    }

    .contact-content > p {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .contact h2 {
        margin: 18px 0 32px;
        font-size: 43px;
        line-height: 0.95;
        letter-spacing: -0.5px;
    }

    .contact h2 span {
        -webkit-text-stroke: 0.8px #080808;
    }


    /* =====================================================
       FORMULARIO CELULAR
       ===================================================== */

    .contact-form {
        margin-top: 40px;
    }

    .contact-form label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 14px;
        padding: 14px 8px;
    }

    .contact-form textarea {
        min-height: 130px;
    }

    .contact-form button {
        width: 100%;
        padding: 15px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        padding: 35px 20px;
    }


    /* =====================================================
       MODAL
       ===================================================== */

    .history-modal {
        padding: 15px;
    }

    .history-box {
        padding: 45px 20px 25px;
    }

    .history-header h2 {
        font-size: 42px;
    }

    .history-modal .history-image {
        height: 230px;
    }

    .history-modal .history-text {
        font-size: 14px;
    }

    .history-modal .history-intro {
        font-size: 21px;
    }


    /* =====================================================
       CONTACTO
       ===================================================== */

    .contact h2 {
        word-break: normal;
    }
}