/*
Theme / Diseño web
Autor: Juan Hurtado
Web: www.professionalweb.es
Año: 2026
*/

/* ================= MATRIX ================= */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: white;
    overflow: hidden; /* Solo si usas animación matrix, cambiar a auto después */
}

canvas {
    display: block;
}

/* Contenido oculto hasta finalizar intro */
#contenido {
    display: none;
    text-align: center;
    padding: 100px 20px;
    font-size: 20px;
    color: white;
}

/* ================= INTRO ================= */
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #020617;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

#intro h1 {
    font-size: 60px;
    opacity: 0;
    animation: aparecerIntro 2s forwards;
}

@keyframes aparecerIntro {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================= HEADER ================= */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 ESTO LO SOLUCIONA TODO */
    display: block;
}

header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

header h1 {
    font-size: 60px;
    opacity: 0;
    animation: aparecerHeader 2s ease forwards;
}

header p {
    font-size: 20px;
    opacity: 0.8;
}

@keyframes aparecerHeader {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* HERO con imagen de fondo 
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("foto.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}*/

.hero h1 {
    font-size: 60px;
    margin: 0;
}

.hero p {
    font-size: 22px;
}

/* ================= BOTONES ================= */
.btn {
    margin-top: 30px;
    padding: 12px 25px;
    background: #38bdf8;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #0ea5e9;
    transform: scale(1.05);
}

/* ================= TECNOLOGIAS ================= */
.tecnologias {
    text-align: center;
    padding: 60px 20px;
    background: #020617;
}

.tech-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech {
    background: #1e293b;
    padding: 20px 30px;
    border-radius: 10px;
    transition: 0.3s;
}

.tech:hover {
    transform: translateY(-8px);
    background: #334155;
}

/* ================= GALERIA ================= */
.galeria {
    padding: 60px 20px;
    text-align: center;
}

.grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid img {
    width: 100%;
    border-radius: 12px;
    transition: 0.4s;
}

.grid img:hover {
    transform: scale(1.05);
}

/* ================= FORMULARIO CONTACTO ================= */
.formulario {
    width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: black;
}

.formulario input,
.formulario textarea,
.formulario button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.formulario button {
    background: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.formulario button:hover {
    background: #0056b3;
}

/* ================= FOOTER ================= */
footer {
    background: #020617;
    color: #ccc;
    padding: 60px 20px 20px;
}

/* grid */
.footer-container > div {
    text-align: center; /* centra todo dentro de cada columna */
}


/* títulos */
.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    color: white;
}

/* texto */
footer p {
    font-size: 14px;
    line-height: 1.6;
}

/* redes */
.social-icons {
    display: flex;
    justify-content: center; /* centra los iconos horizontalmente */
    gap: 15px;
    margin-top: 10px;
}
/* iconos */
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #111827;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* animación hover PRO */
.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* colores por red */
.social-icons a:nth-child(1):hover {
    background: #E1306C; /* Instagram */
}

.social-icons a:nth-child(2):hover {
    background: #FF0000; /* YouTube */
}

.social-icons a:nth-child(3):hover {
    background: #0077B5; /* LinkedIn */
}

/* parte inferior */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    color: #888;
}
/* ================= BANNER COOKIES ================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    padding: 20px;
    background: #111;
    color: white;
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-buttons button {
    padding: 8px 14px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .tech-container { flex-direction: column; gap: 15px; }
    .grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
    #intro h1 { font-size: 40px; }
    header h1 { font-size: 40px; }
    header p { font-size: 18px; }
    .btn { font-size: 16px; padding: 10px 20px; }
}
/* ajuuts movil */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
}