@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@100;200;400;600;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: #0f172a;
    color: #e2e8f0;
}

/* ================= HEADER ================= */

.contenedor-header{
    width: 100%;
    position: fixed;
    border-bottom: 1px solid #1e293b;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 99;
    padding: 0 20px;
}

.contenedor-header header{
    max-width: 1100px;
    margin: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.txtRojo{
    color:#00d4ff;
}

.contenedor-header header nav a{
    text-decoration: none;
    color: #e2e8f0;
    padding: 5px 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.contenedor-header header nav a:hover{
    color: #00d4ff;
}

.contenedor-header header .redes a{
    color: #e2e8f0;
    padding: 5px 8px;
    font-size: 18px;
}

.contenedor-header header .redes a:hover{
    color: #00d4ff;
}

.nav-responsive{
    display: none;
    font-size: 25px;
    color: #e2e8f0;
}

/* ================= INICIO ================= */

.inicio{
    height: 100vh;
    background: linear-gradient(rgba(2,6,23,0.8), rgba(2,6,23,0.9)), 
                url(img/imagendefondo.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Reemplazar fondo.jpg por imagen tecnológica de servidores o red digital */

.inicio .info{
    width: fit-content;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.inicio .info h2{
    font-size: 3.5rem;
    letter-spacing: 3px;
}

.inicio .info p{
    margin: 20px;
    color: #94a3b8;
    font-size: 16px;
    letter-spacing: 2px;
}

.btn-mas{
    width: 50px;
    height: 50px;
    border: 2px solid #00d4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #00d4ff;
    margin: 40px auto 0 auto;
    text-decoration: none;
}

.opciones{
    position: absolute;
    display: flex;
    justify-content: space-between;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.opcion{
    border-top: 2px solid #334155;
    padding: 7px 15px;
    color: #94a3b8;
    margin: 0 10px;
    font-size: 14px;
}

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

.nosotros{
    max-width: 1100px;
    margin: auto;
    padding: 120px 20px;
}

.fila{
    display: flex;
    align-items: center;
}

.col{
    width: 50%;
}

.col img{
    width: 80%;
    display: block;
    margin: auto;
}
/* Reemplazar imágenes por ilustraciones tecnológicas */

.contenedor-titulo{
    display: flex;
    align-items:center;
    margin-bottom: 20px;
}

.numero{
    color: #00d4ff;
    font-weight: bold;
    font-size: 4rem;
}

.contenedor-titulo .info{
    margin-left: 20px;
}

.contenedor-titulo .info .frase{
    color: #00d4ff;
    font-weight: 600;
}

.contenedor-titulo .info h2{
    font-size: 2.5rem;
}

.p-especial{
    font-weight: bold;
    margin-bottom: 15px;
}

.col p{
    line-height: 28px;
    color: #cbd5e1;
}

/* ================= SERVICIOS ================= */

.servicios{
    background: linear-gradient(rgba(2,6,23,0.95), rgba(2,6,23,0.95)), 
                url(img/imagendefondo.jpg);
    background-size: cover;
    padding: 100px 0;
}
/* Reemplazar fondo-servicios.jpg por fondo digital minimalista */

.servicios .contenido-seccion{
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.info-servicios{
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.info-servicios table{
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    background-color: #1e293b;
}

.info-servicios table td{
    padding: 40px;
    border: 1px solid #334155;
}

.info-servicios table td i{
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-servicios h3{
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-servicios p{
    color: #cbd5e1;
    line-height: 26px;
}

/* ================= CONTACTO ================= */

.contacto{
    background: linear-gradient(rgba(2,6,23,0.95), rgba(2,6,23,0.95)), 
                url(img/imagendefondo.jpg);
    background-size: cover;
    padding: 100px 20px;
}

.contacto .contenido-seccion{
    max-width: 800px;
    margin: auto;
}

.contacto .fila{
    display: flex;
    margin-top: 40px;
    justify-content: space-between;
}

.contacto .col{
    width: 48%;
}

.contacto input,
.contacto textarea{
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background-color: #1e293b;
    color: #e2e8f0;
    outline: none;
}

.contacto textarea{
    margin-top: 20px;
    height: 180px;
}

.contacto button{
    display: block;
    margin: 30px auto 0 auto;
    border: none;
    background-color: #00d4ff;
    color: #0f172a;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= FOOTER ================= */

footer{
    background-color: #020617;
    padding: 30px 0;
}

footer .info{
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

footer p{
    color: #64748b;
}

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

@media only screen and (max-width: 900px){

    header nav{
        display: none;
    }

    .nav-responsive{
        display: block;
    }

    nav.responsive{
        display: flex;
        flex-direction: column;
        justify-content: center;
        position:absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color:#0f172a;
        z-index: 99;
    }

    nav.responsive a{
        margin: 20px auto;
        font-size: 24px;
    }

    .fila{
        display: block;
    }

    .col{
        width: 100%;
        margin-bottom: 30px;
    }

    .contacto .fila{
        display: block;
    }

    .contacto .col{
        width: 100%;
        margin-bottom: 20px;
    }

    .opciones{
        display: none;
    }
}

/* ================= EFECTO IMÁGENES TECNOLÓGICO ================= */

.col img{
    transition: transform 0.5s ease, 
                box-shadow 0.5s ease, 
                filter 0.5s ease;
    border-radius: 12px;
    filter: brightness(0.9) contrast(1.05);
}

.col img:hover{
    transform: scale(1.05) translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 212, 255, 0.25),
        0 0 25px rgba(0, 212, 255, 0.35);
    filter: brightness(1.1) contrast(1.1);
}

/* Efecto extra más futurista (opcional pero recomendado) */

.col{
    perspective: 1000px;
}

.col img:hover{
    transform: scale(1.05) translateY(-8px) rotateX(4deg) rotateY(-4deg);
}

/* ================= EFECTO IMAGEN PRO TECH ================= */

.col{
    perspective: 1200px;
}

.col img{
    position: relative;
    width: 80%;
    display: block;
    margin: auto;
    border-radius: 16px;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    transform-style: preserve-3d;
    z-index: 1;
}

/* Glow base */
.col img::after{
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(
        45deg,
        #00d4ff,
        transparent,
        #00d4ff,
        transparent
    );
    background-size: 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: neonMove 6s linear infinite;
}

/* Hover 3D + iluminación */
.col img:hover{
    transform: rotateY(-8deg) rotateX(6deg) scale(1.06);
    box-shadow:
        0 20px 40px rgba(0,212,255,0.25),
        0 0 40px rgba(0,212,255,0.35);
}

/* Activar borde animado */
.col img:hover::after{
    opacity: 1;
}

/* Animación gradiente */
@keyframes neonMove{
    0%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
    100%{ background-position: 0% 50%; }
}


/* ================= EFECTO SERVICIOS PRO (LIMPIO Y ALINEADO) ================= */

.info-servicios table{
    border-spacing: 20px;
    border-collapse: separate;
}

.info-servicios table td{
    position: relative;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

/* Hover elegante sin descuadrar */
.info-servicios table td:hover{
    border-color: #00d4ff;
    background: linear-gradient(145deg, #1e293b, #162033);
    box-shadow:
        0 0 20px rgba(0,212,255,0.25),
        0 0 40px rgba(0,212,255,0.15);
}

/* Glow en título */
.info-servicios table td:hover h3{
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0,212,255,0.6);
}

/* Texto un poco más claro al hover */
.info-servicios table td:hover p{
    color: #e2e8f0;
}


/* Aparición elegante */

.info-servicios table td{
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.info-servicios table td:nth-child(1){ animation-delay: 0.2s; }
.info-servicios table td:nth-child(2){ animation-delay: 0.4s; }
.info-servicios table td:nth-child(3){ animation-delay: 0.6s; }

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= BOTÓN MEJORADO ================= */

.contacto button{
    transition: all 0.3s ease;
}

.contacto button:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,212,255,0.3);
}

/* ================= ÍCONOS MÁS VISIBLES ================= */

.info-servicios table td i{
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0,212,255,0.5);
}
.btn-nextcloud {
  display: inline-block;
  background: linear-gradient(145deg, #00d4ff, #0099cc);
  color: #0f172a;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-nextcloud:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
  color: #0f172a;
}
.contacto button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
