/* =========================================
   ESTILOS GENERALES - UNIVERSO CONSCIENTE
   ========================================= */




/* =========================================
   PORTADA (HEADER)
   ========================================= */
.portada {
    position: relative;
    height: 70vh; /* Aumenté de 60vh a 70vh para dar más presencia visual */
    display: flex;
    flex-direction: column; /* Organiza el logo arriba y el texto abajo */
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Mantenemos tu fondo pero con un ajuste de posición */
    background: linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.85)), 
                url('imagenes/tesla.jpg'); 
    background-size: cover;
    background-position: center 20%; /* Ajusta la imagen para que la cara de Tesla no se tape */
    
    border-bottom: 3px solid #58a6ff;
    padding-top: 80px; /* IMPORTANTE: Crea el espacio para que el Navbar no tape el contenido */
}

/* Efecto extra para el título principal */
.portada h1 {
    font-size: clamp(2rem, 8vw, 3.5rem); /* Se ajusta solo según el tamaño de la pantalla */
    margin-top: 20px;
}

.img-tesla {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #58a6ff;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.4);
    transition: transform 0.5s ease;
}

.img-tesla:hover {
    transform: scale(1.05) rotate(5deg);
}

.portada h1 {
    font-size: 3.5rem;
    color: #f0f6fc;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.subtitle {
    font-size: 1.2rem;
    color: #8b949e;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   SECCIÓN COMPARATIVA (CONTENIDO)
   ========================================= */

.comparativa {
    max-width: 1100px;
    margin: -50px auto 50px; /* Sube un poco para solaparse con la portada */
    padding: 40px;
    background: #161b22;
    border-radius: 15px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid #30363d;
}

h2 {
    text-align: center;
    color: #58a6ff;
    font-size: 2rem;
    margin-bottom: 40px;
}

.resumen-contenedor {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.columna {
    flex: 1;
    background: #21262d;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #238636; /* Verde para equilibrio */
    transition: all 0.3s ease;
}

.columna:hover {
    transform: translateY(-10px);
    background: #30363d;
    border-top-color: #58a6ff;
}

.columna h3 {
    color: #7ee787;
    margin-top: 0;
    font-size: 1.5rem;
}

.columna p {
    font-size: 1.05rem;
    text-align: justify;
    color: #abb2bf;
}

strong {
    color: #58a6ff;
}

/* =========================================
   SÍNTESIS FINAL (HIGHLIGHT)
   ========================================= */

.conclusion {
    margin-top: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #0d4429 0%, #161b22 100%);
    border-radius: 10px;
    border-left: 5px solid #238636;
    color: #aff5b4;
}

.conclusion h3 {
    margin-top: 0;
    color: #f0f6fc;
}

/* =========================================
   FOOTER Y TRADUCCIÓN
   ========================================= */

footer {
    text-align: center;
    padding: 40px 20px;
    background: #0d1117;
    border-top: 1px solid #30363d;
}

.footer-content p {
    color: #8b949e;
    margin-bottom: 20px;
}

/* Estilo para el widget de Google Translate */
#google_translate_element {
    margin-top: 15px;
}


/* =========================================
   NAVBAR & DROPDOWN - AAPMENTAL
   ========================================= */
/* Sube el z-index al máximo posible */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999999 !important; /* Un 7 para estar seguros */
    background: #0d1117; /* Color sólido para que no se pierda */
    height: 70px;
    display: flex;
    align-items: center;
}

/* Si Google Translate está activo, empujamos el Nav hacia abajo */
.translated-ltr .navbar {
    top: 40px !important; /* Ajusta este valor según el grosor de la barra de Google */
}

/* Ocultar el banner de Google (Opcional, si quieres que no estorbe) */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Logo Estilo */
.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f0f6fc;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-logo span {
    color: #58a6ff;
}

/* Enlaces Principales */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #8b949e;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover, .nav-links a.active {
    color: #f0f6fc;
    background: rgba(48, 54, 61, 0.5);
}

/* Lógica del Dropdown (Desplegable) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #161b22;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #8b949e;
    padding: 10px 20px;
    display: block;
    border-radius: 0; /* Reset para el dropdown */
}

.dropdown-content a:hover {
    background-color: #21262d;
    color: #58a6ff;
}

/* Mostrar al pasar el mouse */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste para el contenido principal */
main {
    margin-top: 80px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 850px) {
    .resumen-contenedor {
        flex-direction: column;
    }

    .portada h1 {
        font-size: 2.2rem;
    }

    .comparativa {
        margin: 20px;
        padding: 20px;
    }
}