/* Reseteo de Estilos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #22173a;
    color: #1e3ce7;
    line-height: 1.6;
}
/* fin reseteo de estilos básicos */
/* Menú de Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #000000;
    box-shadow: 0 2px 5px rgba(20, 195, 248, 0.801);
    position: sticky;
    top: 0;
    z-index: 100;
}
.menu-desplegable {
    position: relative;
}

.menu-checkbox {
    display: none;
}

/* Diseño del ícono de menú (3 líneas) */
.menu-icono {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    margin-right: 15px; /* Separa el ícono del logotipo TIÑINI */
}

.menu-icono span {
    width: 100%;
    height: 3px;
    background-color: white; /* Color de las líneas del ícono */
    border-radius: 2px;
    transition: 0.3s;
}

/* Contenedor del menú oculto por defecto */
.menu-contenido {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #0b1335; /* Mismo azul oscuro de la barra */
    border: 1px solid #5d3fd3; /* Borde morado elegante */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    width: 220px;
    min-width: 180px;
    display: none; /* Se mantiene oculto */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 100;
}

.menu-contenido li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

/* Efecto al pasar el mouse sobre las opciones del menú */
.menu-contenido li a:hover {
    background-color: #5d3fd3; /* Fondo morado al seleccionar */
}

/* TRUCO CSS: Cuando el checkbox está marcado, muestra el menú */
.menu-checkbox:checked ~ .menu-contenido {
    display: block;
}

.navbar .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007acc;
    display: flex;
    align-items: center;
    gap: 8px; /* Separa el icono del texto */
    letter-spacing: 0.5px;
    flex-grow: 3; /* Permite que el logo ocupe más espacio y empuje los enlaces a la derecha */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #45e1ec;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007acc;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.logo-img {
    height: 50px; /* Ajusta este valor para cambiar el tamaño de tu logo */
    width: auto; 
    object-fit: contain;
}

/*fin menú de navegación */
/*--SLIDE--*/

#slide {
	position: relative;
	margin: auto;
	width: 1000px;
	height: 301px;
	background: local;
}

#slide ul {
	position: relative;
	top: 0;
	left: 0;
	width: 1000px;
	height: 301px;
	background: url(../img/slide01.jpg);
	list-style: none; /* Quita los puntos por defecto de la lista */
	padding: 0;
	margin: 0;
}

#slide ul li img {
	position: absolute;
	left: 0;
	opacity: 0;
	visibility: hidden;      /* SOLUCIÓN: Oculta el elemento del flujo de clics */
	pointer-events: none;    /* SOLUCIÓN: Hace que los clics pasen a través de la imagen */
	transition: opacity 1s ease-out, visibility 1s ease-out; /* Transición suave para ambos */
}

#slide ul li label {
	position: relative;
	z-index: 3;
	top: 304px;
	left: 440px;
	float: left;
	width: 10px;
	height: 10px;
	margin: 0 2px;
	background: blue;
	border: 3px solid white;
	cursor: pointer;
	border-radius: 100%;
}

#slide ul li label:hover {
	background: #aaa;
}

#slide ul li label:active {
	background: magenta;
}

#slide ul li input {
	display: none;
}


#slide ul li input#boton-1:checked~#foto01,
#slide ul li input#boton-2:checked~#foto02,
#slide ul li input#boton-3:checked~#foto03,
#slide ul li input#boton-4:checked~#foto04,
#slide ul li input#boton-5:checked~#foto05 {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@keyframes rotarSlider {
	0%, 20% {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	25%, 100% {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

#foto01 { animation: rotarSlider 25s infinite 0s; }
#foto02 { animation: rotarSlider 25s infinite 5s; }
#foto03 { animation: rotarSlider 25s infinite 10s; }
#foto04 { animation: rotarSlider 25s infinite 15s; }
#foto05 { animation: rotarSlider 25s infinite 20s; }
/*--FIN SLIDE--*/

/*--BOTONERA SLIDE--*/

#botoneraSlide{
	position:relative;
	margin:auto;
	width:1000px;
	height:26px;
	background:url(../img/backBotonesSlide.jpg);
	}
	
#botoneraSlide ul{
	position:relative;
	margin:auto;
	width:100px;
	height:26px;
	}
	
#botoneraSlide ul li{
	float:left;
	width:10px;
	height:10px;
	border-radius:100%;
	background:#232d80;	
	border:3px solid white;
	margin:3px 2px;
	}
	
/*--FIN BOTONERA SLIDE--*/

/* Sección Inicio / Hero */
.hero-section.hero-home {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(../img/inicio01.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 0 20px;
}

.hero-section.hero-home .hero-content {
    max-width: 900px;
    width: 100%;
    padding: 40px 20px;
    background: transparent;
    box-shadow: none;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: rgb(247, 246, 246);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f5f5f7;
    
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #f11f1f;
    color: #c1f742;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
}

.hero-section .btn:hover {
    background-color: #333;
    color: #fff;
}

/* fin sección inicio */
/* --- ESTILOS DEL BOTÓN PRINCIPAL --- */
.btn-principal {
    display: inline-block;
    padding: 14px 32px;
    background-color: #007acc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #005999;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn-principal:hover {
    background-color: #005999;
    transform: translateY(-2px);
}


/* Sección Sobre Mí */
.about-section {
    background-color: #59effa;
   
}

.about-section h2 {
    color: #070606;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #070606;
}
/*fin sección sobre mí */
/* Sección de Proyectos */
/* ======================================
   🚀 SECCIÓN HERO PRINCIPAL
   ⚙️ CONEXIÓN: <section class="hero-section hero-page">
   Función: Zona de presentación con texto e imagen
   ====================================== */
.hero-section.hero-page {
    background: rgba(13, 22, 43, 0.7);
    /* → Fondo oscuro translúcido */
    backdrop-filter: blur(6px);
    /* → Efecto vidrio */
    border: 1px solid rgba(0, 242, 254, 0.2);
    /* → Borde sutil brillante */
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 40px;
    /* → Espacio antes de las tarjetas */
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.hero-contenido {
    max-width: 1200px;
    margin: 0 auto;
    /* → Centra todo el contenido */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* → Divide en 2 partes iguales */
    gap: 30px;
    /* → Espacio entre texto e imagen */
    align-items: center;
    /* → Alinea verticalmente */
}

/* → Estilo para el texto dentro de la sección */
.hero-texto h2 {
    font-size: 32px;
    color: #00f2fe;
    /* → Color cian brillante */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
}

.hero-texto p {
    font-size: 18px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* → Estilo del botón */
.boton {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid #00f2fe;
    color: #00f2fe;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    /* → Animación suave */
}

.boton:hover {
    background: #00f2fe;
    color: #0a0f1d;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* → Estilo para la imagen */
.hero-imagen img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* ======================================
   📱 ADAPTACIÓN HERO A CELULARES
   ====================================== */
@media (max-width: 768px) {
    .hero-contenido {
        grid-template-columns: 1fr;
        /* → Pasa a 1 sola columna */
        text-align: center;
    }

    .hero-texto h2 {
        font-size: 26px;
    }
}

/* ======================================
   🟦 CSS GRID: Estructura en filas y columnas
   ⚙️ CONEXIÓN: <section class="grid-proyectos">
   ====================================== */
.grid-proyectos {
    display: grid;
    /* ✅ ACTIVA: convierte este contenedor en una cuadrícula */
    grid-template-columns: repeat(4, 1fr);
    /* → Crea 4 columnas del mismo ancho */
    gap: 25px;
    /* → Espacio entre cada tarjeta */
    max-width: 1200px;
    /* → Ancho máximo que puede ocupar la cuadrícula */
    margin: 0 auto;
    /* → Centra toda la cuadrícula en la pantalla */
}

/* ⚙️ CONEXIÓN: .tarjeta = <div class="tarjeta"> de cada una */
.tarjeta {
    background-color: rgba(20, 30, 55, 0.85);
    /* → Fondo oscuro semi-transparente estilo sistema integrado */
    padding: 30px;
    /* → Espacio interno entre el borde y el texto */
    border-radius: 12px;
    /* → Redondeo de esquinas */
    text-align: center;
    /* → Centra todo el contenido dentro de la tarjeta */
    border: 1px solid rgba(0, 242, 254, 0.15);
    /* → Borde sutil brillante */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* → Sombra profunda */
    color: #cbd5e0;
    /* → Color del texto descriptivo interno */

    /* ======================================
       🎬 ANIMACIONES: cambios suaves
       ====================================== */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.tarjeta .icono {
    font-size: 40px;
    /* → Tamaño del emoji o icono */
    margin-bottom: 15px;
}

.tarjeta h3 {
    color: #00f2fe;
    /* → Títulos de tarjetas en cian brillante */
    margin-bottom: 10px;
}

/* ✨ EFECTO AL PASAR EL RATÓN */
.tarjeta:hover {
    transform: translateY(-10px);
    /* → Mueve la tarjeta 10 píxeles hacia arriba */
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.25);
    /* → Destello azul claro al levantar */
    background-color: rgba(26, 41, 74, 0.95);
    /* → Aclara el fondo interno */
    border-color: #00f2fe;
    /* → El borde se enciende */
    cursor: pointer;
    /* → El cursor cambia a forma de mano */
}

/* ======================================
   📱 RESPONSIVE: Adaptación a pantallas pequeñas
   ====================================== */

/* 📏 Para TABLETS: si la pantalla es MENOR a 992px */
@media (max-width: 992px) {
    .grid-proyectos {
        grid-template-columns: repeat(2, 1fr);
        /* → Cambia automáticamente de 4 a 2 columnas */
    }
}

/* 📏 Para CELULARES: si la pantalla es MENOR a 600px */
@media (max-width: 600px) {
    .grid-proyectos {
        grid-template-columns: 1fr;
        /* → Pasa a 1 sola columna vertical */
        gap: 15px;
        /* → Reduce el espacio entre tarjetas */
    }

    body {
        padding: 10px;
        /* → Reduce el margen general */
    }
}

/* ======================================
   🔥 ESTILO COMPLEMENTARIO HERO ANTERIOR
   ====================================== */
.hero-content {
    background: linear-gradient(135deg, #0a4b78 0%, #0d222d 100%);
    /* → Degradado oscuro */
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #00f2fe;
    /* → Destaca el título con luz cian */
}

.hero-content p {
    font-size: 18px;
    line-height: 1.4;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: azure;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.856);
    transition: transform 0.3s;
}
.project-card h3 {
    margin-bottom: 15px;
    color: #101533;
}
.project-card p {
    color: #101533;
}

.project-card:hover {
    transform: translateY(-5px);
}
/*fin sección de proyectos */
/* Sección de Contacto */
.contact-section {
    background-image: url(../img/lmg01.jpeg);
    background-size: cover;       
    background-position: center;   
    background-repeat: no-repeat;
}

.contacto-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 50px;           
    margin: 40px auto 0;
    
}


.contacto-video {
    flex: 1;            
    width: 100%;
}

.contacto-video video {
    width: 100%;         
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contacto-formulario {
    flex: 1;            
    width: 100%;
    
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #f5bcbc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; 
}


@media (max-width: 768px) {
    .contacto-container {
        flex-direction: column; 
        gap: 30px;
    }
}

/* fin sección de contacto */
/* --- ESTILOS DE LOS NOVEDADES Y NOTICIAS --- */

#bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    list-style: none; 
}

/* --- TARJETAS DE NOTICIAS Y NOVEDADES --- */

#bottom > li:nth-child(2),
#bottom > li:nth-child(3) {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    flex: 1;
    min-width: 280px; 
    max-width: 450px; 
}


#bottom > li:nth-child(2) h1,
#bottom > li:nth-child(3) h1 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #3182ce; 
}

#bottom > li:nth-child(3) h1 {
    border-bottom-color: #319795; 
}


#bottom ol {
    list-style: none;
    counter-reset: mi-contador; 
    padding: 0;
    margin: 0;
}


#bottom ol li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 14px;
    color: #4a5568;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
}


#bottom > li:nth-child(2) ol li:hover { color: #3182ce; }
#bottom > li:nth-child(3) ol li:hover { color: #319795; }


#bottom ol li::before {
    counter-increment: mi-contador;
    content: counter(mi-contador);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}


#bottom > li:nth-child(2) ol li::before {
    background-color: #ebf8ff;
    color: #2b6cb0;
}


#bottom > li:nth-child(3) ol li::before {
    background-color: #e6fffa;
    color: #234e52;
}


#bottom > li:nth-child(2) ol li:hover::before {
    background-color: #3182ce;
    color: #ffffff;
}
#bottom > li:nth-child(3) ol li:hover::before {
    background-color: #319795;
    color: #ffffff;
}

/* --- FIN SECCION DE NOVEDADES Y NOTICIAS ---*/
/* --- ESTILOS DE LA LISTA DE REDES SOCIALES --- */

.redes-sociales {
    list-style: none;
    display: flex;
    gap: 15px; 
    padding: 0;
    margin-top: 20px;
    background-image: url(../gifs/gif01.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.redes-sociales li {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s;
}

.redes-sociales li:hover {
    transform: scale(1.1); 
}


.redes-sociales li.fb { background-image: url(../img/facebook.jpg); }
.redes-sociales li.gg { background-image: url(../img/iconoGoogle.jpg); }
.redes-sociales li.pt { background-image: url(../img/iconoPinterest.jpg); }
.redes-sociales li.tw { background-image: url(../img/iconoTwitter.jpg); }


.redes-sociales a {
    display: block;
    width: 100%;
    height: 100%;
}


section {
    padding: 80px 10%;
    text-align: center;
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #090a0e;
    margin: 10px auto 0;
}
/* FIN ESTILOS DE REDES SOCILAES*/
/* Pie de Página */
.footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

