/* public_html/assets/css/landing.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary: #0f172a;       /* Azul Oscuro */
    --accent: #38bdf8;        /* Celeste Vibrante */
    --bg-body: #f8fafc;       /* Fondo General Claro */
    --card-bg: #ffffff;       /* Fondo Tarjetas */
    --text-main: #334155;     
    --whatsapp: #25D366;
    --telegram: #0088cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body); /* Fondo claro */
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- NAV (Arreglado para que los botones funcionen) --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5000; /* Z-index altísimo para que nada lo tape */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { 
    color: #64748b; text-decoration: none; transition: 0.3s; 
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.nav-links a:hover { color: var(--accent); }

/* Botón Portal */
/* Botón Acceso Sistema – igual al ES | EN */
.btn-portal {
    background: transparent;              /* ⬅ mismo fondo */
    color: var(--primary) !important;      /* ⬅ mismo color de texto */
    border: 2px solid #e2e8f0;             /* ⬅ mismo borde */
    padding: 6px 16px;                     /* ⬅ mismo tamaño */
    border-radius: 20px;                   /* ⬅ misma forma */
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: none;                      /* ⬅ limpio */
    transition: 0.3s;
}

.btn-portal:hover {
    background: #e2e8f0;
    border-color: var(--accent);
    color: var(--primary) !important;
}



/* Selector de Idioma */
.lang-switch {
    font-weight: bold; cursor: pointer; color: var(--primary);
    border: 2px solid #e2e8f0; padding: 6px 16px; border-radius: 20px;
    transition: 0.3s; font-size: 0.85rem; user-select: none;
}
.lang-switch:hover { background: #e2e8f0; border-color: var(--accent); }

/* --- SLIDER (Fondo de respaldo gris claro) --- */
.hero-slider { position: relative; height: 650px; width: 100%; overflow: hidden; background-color: #cbd5e1; }
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    opacity: 0; transition: opacity 1s ease-in-out; 
    background-size: cover; background-position: center; 
}
.slide.active { opacity: 1; }

.overlay { 
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7)); 
    width: 100%; height: 100%; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; text-align: center; padding: 20px; 
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; color: white; font-weight: 800; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.3rem; max-width: 700px; margin-bottom: 2.5rem; color: #f8fafc; font-weight: 500; }

.cta-btn {
    padding: 15px 40px; background: var(--accent); color: var(--primary);
    text-decoration: none; font-weight: 800; border-radius: 50px; font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.5); transition: all 0.3s; 
    display: inline-block; cursor: pointer; position: relative; z-index: 10;
}
.cta-btn:hover { transform: scale(1.05); background: white; color: var(--accent); }

/* --- SECCIONES --- */
.section-padding { padding: 6rem 5%; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.8rem; color: var(--primary); margin-bottom: 0.5rem; }
.section-title p { color: #64748b; font-weight: 500; font-size: 1.1rem; }

/* SERVICIOS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.card {
    background: var(--card-bg); border-radius: 20px; overflow: hidden;
    transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f1f5f9;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--accent); }
.card-img { height: 220px; background-size: cover; background-position: center; background-color: #e2e8f0; }
.card-content { padding: 2.5rem; text-align: center; }
.card h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.4rem; }
.card p { color: #64748b; line-height: 1.7; }

/* ===== CV / Upload (Minimalista y limpio) ===== */
.cv-section{
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.upload-wrapper{
  max-width: 760px;
  margin: 0 auto;
  padding: 2.4rem 2rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.25s;
}

.upload-wrapper:hover{
  border-color: rgba(56,189,248,0.45);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.custom-upload-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15,23,42,0.06);
  color: var(--primary);
  border: 1px solid rgba(15,23,42,0.10);
  font-weight: 800;
  cursor: pointer;
  margin: 0.8rem 0 1rem;
  transition: 0.25s;
}

.custom-upload-btn:hover{
  background: rgba(56,189,248,0.10);
  border-color: rgba(56,189,248,0.35);
  transform: translateY(-1px);
}

#file-name{
  margin: 10px 0 18px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.95rem;
}

.submit-btn{
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 10px 25px rgba(56,189,248,0.25);
}

.submit-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(56,189,248,0.35);
}

/* Responsive */
@media (max-width: 768px){
  .upload-wrapper{
    padding: 1.7rem 1.2rem;
  }
}


/* ===== Footer Minimalista ===== */
.site-footer{
  background: var(--primary);
  color: white;
  padding: 1.4rem 5%;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-title{
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1rem;
  line-height: 1.2;
}

.footer-sub{
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

.footer-social{
  display: flex;
  gap: 10px;
  justify-content: center;
}

.footer-social a{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.25s;
}

.footer-social a:hover{
  background: rgba(56,189,248,0.16);
  border-color: rgba(56,189,248,0.30);
  transform: translateY(-2px);
}

.footer-copy{
  text-align: right;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-social{
    justify-content: flex-start;
  }
  .footer-copy{
    text-align: left;
    white-space: normal;
  }
}


/* Responsive Footer */
@media (max-width: 900px){
    .footer-min__inner{
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .footer-min__social{
        justify-content: flex-start;
    }
    .footer-min__copy{
        text-align: left;
        white-space: normal;
    }
}

/* FLOTANTES */
.floating-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 6000; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; text-decoration: none; font-size: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.wa { background: var(--whatsapp); }
.tg { background: var(--telegram); }
.float-btn:hover { transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 1.5rem; }
    .nav-links { flex-direction: column; width: 100%; gap: 15px; }
    .hero-content h1 { font-size: 2.2rem; }
}

/* =========================================
   PORTAL DE EMPLEOS (Addons para landing.css)
   ========================================= */

/* Header Estático (Para páginas internas como Empleos) */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    padding: 120px 20px 60px; /* Padding extra arriba para el navbar sticky */
    text-align: center;
    color: white;
    margin-bottom: 50px;
    border-radius: 0 0 50px 50px; /* Curva moderna abajo */
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; }

/* --- CORRECCIÓN GRID Y TARJETAS --- */

.jobs-container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px 80px; 
    box-sizing: border-box; /* Importante para que no se desborde */
}

.jobs-grid { 
    display: grid; 
    /* Ajustado a 280px para que quepan mejor en pantallas medianas */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    width: 100%;
}

.job-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0; /* Borde sutil */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Sombra suave inicial */
    transition: all 0.3s ease;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    height: 100%; /* Para que todas tengan la misma altura */
    min-height: 280px;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent);
}

.btn-apply {
    background: var(--primary); 
    color: white;
    width: 100%; 
    padding: 14px; 
    border-radius: 12px;
    border: none; 
    font-weight: 700; 
    cursor: pointer;
    font-size: 1rem; 
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    margin-top: 20px; /* Separación del texto */
}

.btn-apply:hover { 
    background: var(--accent); 
    color: var(--primary); /* Texto oscuro sobre fondo celeste */
}
/* Botón Aplicar (Hereda de .cta-btn pero full width) */
.btn-apply {
    background: var(--primary); color: white;
    width: 100%; padding: 14px; border-radius: 12px;
    border: none; font-weight: 700; cursor: pointer;
    font-size: 1rem; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-apply:hover { background: var(--accent); transform: translateY(-2px); color: var(--primary); }

/* --- MODAL DE APLICACIÓN --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); z-index: 6000; backdrop-filter: blur(5px);
    overflow-y: auto;
}
.modal-box {
    background: white; width: 90%; max-width: 500px;
    margin: 50px auto; padding: 35px; border-radius: 24px;
    position: relative; animation: slideUp 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: #f1f5f9; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.2rem; color: #64748b; cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover { background: #fee2e2; color: #ef4444; }

/* Inputs del Modal */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--primary); font-size: 0.9rem; }
.form-input {
    width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 12px;
    font-family: 'Poppins', sans-serif; font-size: 0.95rem; transition: 0.2s; outline: none;
}
.form-input:focus { border-color: var(--accent); background: #f0f9ff; }

/* Alertas */
.alert { padding: 15px; border-radius: 12px; margin-bottom: 30px; text-align: center; font-weight: 600; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }


/* --- INPUT DE ARCHIVO PERSONALIZADO (MASTER) --- */
.upload-wrapper { text-align: center; margin-bottom: 20px; }

/* Ocultamos el input original feo */
input[type="file"].hidden-input { display: none; }

/* Creamos el botón bonito */
.custom-upload-btn {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    background: #f8fafc; 
    border: 2px dashed #cbd5e1; /* Borde punteado moderno */
    padding: 20px; 
    border-radius: 16px; 
    cursor: pointer;
    color: #64748b; 
    font-weight: 600; 
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Efecto Hover */
.custom-upload-btn:hover { 
    border-color: var(--accent); 
    color: var(--accent); 
    background: #f0f9ff; 
    transform: translateY(-2px);
}

/* Texto del nombre del archivo seleccionado */
.file-name-display {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: none; /* Se oculta si no hay archivo */
    background: #e2e8f0;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}

/* Botón para eliminar archivo seleccionado */
.btn-delete-file {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-delete-file:hover {
    background: #fecaca;
    transform: scale(1.05);
}

/* Ocultar barra de Google Translate */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-tooltip { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
font { background-color: transparent !important; box-shadow: none !important; }

/* ==============================================
   HACK PARA GOOGLE TRANSLATE
   ============================================== */
/* Ocultar la barra superior (iframe) */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

/* Forzar al body a quedarse arriba */
body {
    top: 0px !important; 
    position: static !important; 
}

/* Ocultar tooltips y resaltados al pasar el mouse */
.goog-tooltip, 
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* Ocultar logo de Google */
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}