@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* BODY */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    color: #222;
    background: #f2f4f7;
}

/* NAVBAR */
.navbar {
    background: transparent;
    transition: 0.3s;
    padding: 15px 0;
}

.nav-scroll {
    background: #0d0f12 !important;
}

.nav-link {
    color: white !important;
    margin-left: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-link.active {
    color: #ff4d4d !important;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('../img/maquina1.jpg') no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
}

/* CONTENIDO HERO */
.contenido {
    position: relative;
    color: white;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contenido h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeDown 1s ease;
}

.contenido p {
    font-size: 18px;
    color: #eaeaea;
    animation: fadeUp 1.2s ease;
}

/* SECCIONES */
.seccion {
    padding: 100px 0;
}

/* TITULOS */
h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #111;
}

h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* PARRAFOS */
p {
    font-size: 16px;
    color: #444;
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-weight: 400;
}

/* NOSOTROS */
#nosotros p {
    text-align: justify;
}

/* PROYECTOS */
#proyectos {
    background: linear-gradient(to bottom, #e3e7ed, #d8dee6);
    padding: 100px 0 !important;
    margin: 0 !important;
}

#proyectos h2 {
    color: #111;
}

#proyectos p {
    color: #444;
}

#proyectos .container,
#proyectos .container-fluid {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#proyectos .row {
    margin: 0 !important;
    margin-top: 40px !important;
}

#proyectos img {
    border-radius: 0;
    transition: 0.4s;
}

#proyectos img:hover {
    transform: scale(1.05);
}

/* 🔥 SERVICIOS */
#servicios {
    background: url('../img/18.jpeg') no-repeat center;
    background-size: cover;
    position: relative;
    color: white;
    min-height: 720px;
}

#servicios::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

#servicios .container {
    position: relative;
    z-index: 2;
    padding-top: 130px;
}

#servicios h2,
#servicios h5 {
    color: white;
}

#servicios p {
    color: #d6d6d6;
}

/* 🔥 CONTACTO (FRANJA HORIZONTAL PRO) */
.contacto {
    background: #0d0f12;
    color: white;
    padding: 35px 0;
    text-align: center;
}

.contacto h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

/* barra horizontal */
.contacto .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-barra {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.contacto-barra span {
    font-size: 14px;
    color: #cfcfcf;
}

/* separadores */
.contacto-barra span.separator {
    color: #666;
}

/* copyright */
.contacto small {
    margin-top: 10px;
    color: #777;
    font-size: 12px;
}

/* BOTÓN */
.btn-danger {
    background: #ff4d4d;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ANIMACIONES */
.animado {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeDown {
    from {opacity:0; transform: translateY(-30px);}
    to {opacity:1; transform: translateY(0);}
}

@keyframes fadeUp {
    from {opacity:0; transform: translateY(30px);}
    to {opacity:1; transform: translateY(0);}
}

/* LOGO */
.logo-navbar {
    height: 50px;
    width: auto;
    transform: scale(7.2);
    transform-origin: left center;
    margin-top: 15px;
}

.navbar-brand {
    overflow: visible;
    margin-left: -100px;
}

/* CASCADA */
.cascade-row {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
    overflow: hidden;
}

.cascade-item {
    width: 33.33%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(-120px);
    transition: all 0.8s ease;
}

.cascade-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* NOSOTROS */
#nosotros {
    background: url('../img/10.jpeg') no-repeat center;
    background-size: cover;
    position: relative;
    color: white;
    min-height: 600px;
}

#nosotros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

#nosotros .container {
    position: relative;
    z-index: 2;
    padding-top: 130px;
}

#nosotros p {
    color: #ddd;
}

#nosotros h2 {
    color: white;
}

/* GALERÍA */
.galeria {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .galeria {
        height: 150px;
    }
}

.galeria-video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0d0f12;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 77, 77, 0.2);
    border-top-color: #ff4d4d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ENLACE DEVELOPER */
.contacto a.tech-link,
.contacto a.tech-link:link {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: 0.3s;
}

.contacto a.tech-link:visited {
    color: #777777 !important;
}

.contacto a.tech-link:hover {
    color: #cccccc !important;
    text-decoration: underline !important;
}