/* =========================================
   1. VARIABLES Y BASE GLOBAL
   ========================================= */
:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #777777;
    --accent-red: #ff4d4d;
    --accent-blue: #24A1DE;
    --border-color: #222222;
    --input-bg: #050505;
    --transition-speed: 1s;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* =========================================
   2. ESTILOS MODO PORTFOLIO (Full Page)
   ========================================= */
body.portfolio-mode {
    display: block; 
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

#slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
}

.slide.active-slide { opacity: 1; visibility: visible; z-index: 5; transform: scale(1); }
.slide.prev-slide { opacity: 0; transform: scale(0.8); z-index: 2; }
.slide.next-slide { opacity: 0; transform: scale(1.2); z-index: 2; }

/* INDICADOR SCROLL */
.scroll-indicator {
    position: fixed;
    bottom: 120px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: #ffffff;
    z-index: 9999;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    transition: opacity 0.5s;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* FOTOS */
.photo-slide {
    background-size: cover;
    background-position: center center !important; 
    background-repeat: no-repeat;
    transform-origin: center center;
    will-change: transform;
}
.photo-slide.active-slide {
    animation: kenBurnsPure 10s infinite alternate ease-in-out;
}
@keyframes kenBurnsPure {
    0% { transform: scale(1); }
    100% { transform: scale(1.35); }
}

/* CONTENIDO TEXTO */
.content h1 { font-size: 3.5rem; letter-spacing: 5px; text-transform: uppercase; text-shadow: 0 10px 30px rgba(0,0,0,0.9); }
.content p { font-size: 1.2rem; line-height: 1.6; color: #eee; text-shadow: 0 5px 20px rgba(0,0,0,0.9); }

/* =========================================
   3. ESTILOS TARJETA (Index y Telegram)
   ========================================= */
.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.9);
    width: 90%;
    max-width: 480px;
    border: 1px solid var(--border-color);
    text-align: center;
    animation: zoomInCard 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* Importante para que no lo tapen otras cosas */
    position: relative;
    z-index: 10;
}

@keyframes zoomInCard {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.warning-box {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid var(--accent-red);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: var(--accent-red);
}

/* --- AQUÍ ESTÁ LA SOLUCIÓN DEL LOGO --- */
.tg-logo { 
    width: 70px; 
    height: 70px; 
    margin-bottom: 20px; 
}

h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-red);
}

/* --- ESTILOS DE FORMULARIO (Solución Inputs Blancos) --- */
.form-group { margin-bottom: 20px; text-align: left; }
label { display: block; font-size: 0.75rem; margin-bottom: 8px; color: var(--text-secondary); text-transform: uppercase; font-weight: bold; }

input, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: var(--input-bg); /* Esto los hace negros */
    color: white;
    box-sizing: border-box;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}
input:focus, textarea:focus { border-color: var(--accent-red); }

button, .btn-action {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.2s;
    text-transform: uppercase;
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
}
button:hover, .btn-action:hover { background-color: var(--accent-blue); color: #ffffff; }

.contact-link {
    display: inline-block;
    margin-top: 40px;
    font-weight: bold;
    color: #ffffff !important;
    text-decoration: underline;
    opacity: 0;
    animation: zoomInDelayed 0.6s ease-out 1.2s forwards;
}

@keyframes zoomInDelayed {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.word-count { font-size: 0.7rem; text-align: right; margin-top: 5px; color: #555; }
.info-text { font-size: 0.85rem; color: #bbb; margin-bottom: 25px; }

#google_translate_element { position: absolute; top: 20px; right: 20px; z-index: 1000; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }

/* =========================================
   SOLUCIÓN NUCLEAR: OCULTAR BARRA GOOGLE
   ========================================= */

/* 1. Matar el iframe de la barra superior */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame, 
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Forzar al cuerpo a subir (anular el empuje de Google) */
body {
    top: 0px !important; 
    position: static !important; 
    margin-top: 0px !important;
    min-height: 100vh !important;
    height: auto !important;
}

/* 3. Ocultar los tooltips que salen al pasar el ratón por el texto */
#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}

/* 4. Eliminar el resaltado azul/gris al pasar el ratón */
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* 5. Asegurar que la fuente no se rompa */
font {
    background-color: transparent !important;
    box-shadow: none !important;
}