
/* Reset y estilos base */
        /* Explicación: base consistente y sin desbordes horizontales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html, body {
            overflow-x: hidden; /* Evita scroll horizontal innecesario */
        }

        /* Reglas universales para imágenes
           Motivo: asegurar proporciones consistentes en Chrome, Edge y Firefox.
        */
        img { max-width: 100%; height: auto; display: block; }
        .logo { max-height: 80px; width: auto; }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #000000;
            color: #ffffff;
            min-height: 100vh;
            
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px; /* Padding fluido para respiración lateral */
            width: 100%;


        }
/* (Se eliminó todo el bloque de estilos del header) */


       

        /* Main Hero Section */
        main {
            padding: 64px 0;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
            min-height: 60vh;
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .hero-title {
            /* Explicación: tipografía fluida con clamp para legibilidad en cualquier tamaño */
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: 700;
            line-height: 1.1;
            color: #ffffff;
        }

        .hero-text {
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            color: #d1d5db;
            line-height: 1.7;
        }

        .btn-primary {
            background-color: #005200;
            color: white;
            padding: 16px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 18px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            align-self: flex-start;
        }

        .btn-primary:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(0, 82, 0, 0.25);
        }

        .hero-image {
            display: flex;
            justify-content: center;
        }

        .profile-image {
            /* Explicación: imagen de perfil fluida que mantiene proporción */
            width: clamp(200px, 35vw, 320px);
            height: clamp(200px, 35vw, 320px);
            background-color: #9B9B9B;
            border-radius: 50%;
            padding: 4px;
        }

        .profile-inner {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #374151, #1f2937);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
.profile-inner img {
  width: 100%;         
  height: 100%;         
  border-radius: 50%;    
  object-fit: cover;     
  display: block;        
}

     

        /* About Section */
        .about-section {
            padding: 80px 0;
            background-color: #000000;
        }

        .about-title {
            font-size: clamp(1.75rem, 4vw, 2.5rem);
            font-weight: bold;
            text-align: center;
            margin-bottom: 64px;
            color: #ffffff;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            padding: 20px;
        }

        .about-column {
            display: flex;
            flex-direction: column;
            gap: 32px;
        }

        .about-card {
            background-color: #111827;
            padding: 24px;
            border-radius: 12px;
            border: 2px solid #005200;
        }

        .about-card h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 16px;
            color: #ffffff;
        }

        .about-card p {
            color: #d1d5db;
            line-height: 1.7;
        }


       
        .container2 {
            max-width: 1200px;
            margin: 0 auto;
          
        }

        .main-title {
            text-align: center;
            color: white;
            font-size: 2.5rem;
            margin-bottom: 50px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Explicación: mínimo adaptado para móviles estrechos */
            gap: 30px;
            margin-bottom: 40px;
        }

        .tools-section {
            background-color: #111827;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .tools-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }

        .section-title {
            text-align: center;
            font-size: 1.5rem;
            color: white;
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 3px solid #005200;
        }

        .tools-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .tool-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border-radius: 15px;
            background: #303A4A;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .tool-item:hover {
            background: #e9ecef;
            transform: scale(1.05);
        }

        .tool-logo {
            width: 50px;
            height: 50px;
            margin-bottom: 10px;
            transition: transform 0.3s ease;
        }

        .tool-item:hover .tool-logo {
            transform: rotate(5deg);
        }

        .tool-name {
            font-weight: 600;
            color: white;
            font-size: 0.9rem;
            text-align: center;
        }

        .sources {
            background: rgba(0,0,0,0);
            border-radius: 15px;
            padding: 20px;
            margin-top: 30px;
        }

        .sources h3 {
            color: white;
            margin-bottom: 15px;
            text-align: center;
        }

        /* Explicación: imágenes y medios siempre escalan dentro de su contenedor */
        img, video, canvas {
            max-width: 100%;
            height: auto;
        }

        /* ======================= */
        /* Media Queries Globales */
        /* ======================= */
        @media (max-width: 1024px) {
            .hero-grid {
                gap: 32px;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 16px; /* Padding más compacto */
            }
            .hero-grid {
                grid-template-columns: 1fr; /* Una sola columna */
                text-align: center;
            }
            .hero-content {
                align-items: center; /* Centra contenido */
            }
            .btn-primary {
                align-self: center; /* Botón centrado en móvil */
            }
            .about-grid {
                grid-template-columns: 1fr; /* Columnas apiladas */
            }
        }

        @media (min-width: 1440px) {
            .container {
                max-width: 1400px; /* Mejora para monitores grandes */
            }
        }

        .sources p {
            color: rgba(255,255,255,0.9);
            font-size: 0.9rem;
            line-height: 1.6;
            text-align: center;
        }

        .sources a {
            color: #ffd700;
            text-decoration: none;
        }

        .sources a:hover {
            text-decoration: underline;
        }

/*
 * ESTADO INICIAL PARA TODAS LAS ANIMACIONES
 * Por defecto, los elementos están ocultos y ligeramente desplazados hacia abajo.
*/
.hero-content > *,
.hero-image,
.about-card,
.tools-section {
    opacity: 0;
    transform: translateY(20px); /* Un sutil desplazamiento vertical */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/*
 * ESTADO FINAL (VISIBLE)
 * Cuando JavaScript añade la clase 'is-visible', los elementos
 * vuelven a su posición original y se muestran suavemente.
*/
.is-visible {
    opacity: 1;
    transform: translateY(0);
}


        /* Responsive */
        @media (max-width: 768px) {

            .hero-grid {
                grid-template-columns: 1fr;
                gap: 32px;
                text-align: center;
            }

            .hero-title {
                font-size: 3rem;
            }

            .profile-image {
                width: 250px;
                height: 250px;
            }

            .about-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 24px;
                text-align: center;
            }

            .footer-nav {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 2.5rem;
            }

            .profile-image {
                width: 200px;
                height: 200px;
            }

            .container {
                padding: 0 16px;
            }
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }
