:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8; /* Azul Tech moderno */
    --accent-hover: #0ea5e9;
    --text-footer:#F16A10;
    --acent-mini:#3C7ADA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.container {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* Perfil */
.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
    object-fit: cover;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

/* Links e Projetos */
.section-title {
    text-align: left;
    margin: 2.5rem 0 1rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--card-bg);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.links-grid {
    display: grid;
    gap: 1rem;
   /* 🛠️ CONTROL DE ANCHO: Modifica este porcentaje o píxeles a tu gusto */
    width: 100%; 
    max-width: 730px; /* Reducido para que no se disperse tanto en pantallas grandes */
    /* Forzado de alineación central para romper el "text-align: left" heredado */
    


}

.card {
    background-color: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(56, 189, 248, 0.05);
}

.card:hover {
    transform: translateY(-3px);
    background-color: #243249;
    border-color: var(--accent);
}

.card-content {
    text-align: left;
    width: 100%;
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.icon {
    font-size: 1.2rem;
    margin-left: 1rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.card:hover .icon {
    transform: translateX(3px);
}

/* Estilo base para todas tus etiquetas */
.tags {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(56, 189, 248, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

/* Tags para tecnologias

.tag {
    display: inline-block;
    background: rgba(230, 126, 34, 0.1); 
    color: #e67e22;                     
    border: 1px solid #e67e22;          
    padding: 3px 10px;
    margin: 2px;
    border-radius: 3px;                
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;          
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}


.tag:hover {
    background: #e67e22;                
    color: #ffffff;                     
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3); 
    transform: translateY(-1px);        
}
*/
/* Para poner a los costados de KoFI*/ 
.iconlove {
    color: #e74c3c; /* Un color rojo vivo y cálido para el corazón */
    font-size: 1.3rem; /* Tamaño adecuado para el icono */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Activamos la animación: se llamará "latido", durará 1.5 segundos, 
       será suave (ease-in-out) e infinita */
    animation: latido 1.5s ease-in-out infinite; 
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Definición de la animación del pulso */
@keyframes latido {
    0% {
        transform: scale(1); /* Tamaño original */
    }
    14% {
        transform: scale(1.2); /* Primer pulso (crece) */
    }
    28% {
        transform: scale(1); /* Contracción */
    }
    42% {
        transform: scale(1.2); /* Segundo pulso (doble latido clásico) */
    }
    70% {
        transform: scale(1); /* Pausa en tamaño original */
    }
    100% {
        transform: scale(1); /* Fin del ciclo antes de repetir */
    }
}

/* Efecto opcional: Si el usuario pasa el mouse, el corazón se agranda un poco más */
.iconlove:hover {
    transform: scale(1.3);
    color: #c0392b; /* Rojo un poco más oscuro al interactuar */
}


/*resalta ko-fi en about*/

/*********** FOOTER*************************/
/* ==========================================================================
   COMPONENTE: FOOTER AVANZADO (INTEGRADO NATIVAMENTE EN EL STYLE.CSS)
   ========================================================================== */
   .main-footer {
    width: 100%;
    max-width: 840px;
    margin-top: 5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--card-bg); /* Línea divisoria usando el fondo de tus tarjetas */
    display: flex;
    flex-direction: column; /* Cambiado a columna para soportar las dos filas */
    gap: 20px;
    box-sizing: border-box;
}

/* Fila Superior: Contenedor de Redes Sociales */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Botones Flotantes de Redes Sociales (Concepto MDBootstrap) */
.social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* Efecto Hover adaptado a la línea visual de la App con acento ciano/azul */
.social-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: rgba(56, 189, 248, 0.05); /* Tinte sutil */
    transform: translateY(-2px); /* Efecto salto táctil */
}

/* Fila Inferior: Contenedor de los dos bloques informativos */
.footer-content-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Bloque Izquierdo: Datos de la Emisora */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-footer);
    font-weight: 500;
}

.highlight-domain {
    color: var(--accent); /* Tu azul tech moderno */
    font-weight: 600;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-footer);
    /*color: var(--text-secondary);  Gris text-secondary de tu root */
    
}

/* Bloque Derecho: Firma de Ingeniería */
.footer-engineering {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dev-by {
    font-size: 0.8rem;
    color: var(--text-footer);
}

.highlight-dev {
    color: var(--acent-mini);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--card-bg);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.highlight-dev:hover {
    color: var(--accent);
    border-bottom-style: solid;
    border-color: var(--accent);
}

/* Contenedor de micro-etiquetas de infraestructura */
.footer-stack-badges {
    display: flex;
    gap: 6px;
}

.badge-mini {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background-color: rgba(56, 189, 248, 0.05); /* Tinte azul tech muy sutil */
    border: 1px solid var(--acent-mini);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- RESPONSIVIDAD: COMPORTAMIENTO EN NAVEGADORES MÓVILES --- */
@media (max-width: 768px) {
    .main-footer {
        gap: 24px;
        margin-top: 4rem;
    }
    
    .footer-content-row {
        flex-direction: column; /* Apilado vertical prolijo de la fila informativa en celulares */
        gap: 20px;
    }
    
    .footer-branding, 
    .footer-engineering {
        align-items: center;
        text-align: center;
    }
}


/********************* **********************/
/* Formulario*/
/* ==========================================================================
   COMPONENTE: PERFECT CONTACT FORM (ADICIONES)
   ========================================================================== */
.form-card {
    text-align: left;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Estado de Validación Dinámica */
.error-message {
    color: #ef4444;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    display: none;
    font-weight: 500;
}

.form-group.invalid .form-control {
    border-color: #ef4444;
}

.form-group.invalid .error-message {
    display: block;
}

/* Botón de Envío */
.btn-submit {
    width: 100%;
    background-color: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Contenedor de Éxito Oculto por Defecto */
.success-card {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.success-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.success-card h2 {
    color: var(--accent);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.success-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Animación de entrada reparada y completada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nota legal del reCAPTCHA v3 */
.captcha-terms {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
    line-height: 1.4;
}

/*btn de contacto */

.btn-wrapper-contacto {
    margin-top: 35px;    /* Modifica aquí el espacio con el texto superior */
    margin-bottom: 35px; /* Modifica aquí el espacio con el texto inferior */
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-wrapper-contacto .btn-info {
    padding: 0 !important;
    overflow: hidden;
    border: none;
    background-color: var(--accent);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    border-radius: 8px;
}

.btn-wrapper-contacto .btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.35);
}

#btn-abrir-contacto {
    display: block; 
    padding: 12px 35px; /* Controla el tamaño del botón (Alto y Ancho) */
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    width: 100%;
    height: 100%;
}

/* style="text-decoration: none !important; color: inherit !important; display: inline-block;"*/

#btn-abrir-contacto:hover {
    color: #0f172a !important;
    text-decoration: none !important;
}

/* ==========================================================================
   AGREGADO NUEVO: ENCABEZADO INTEGRADO DEL FORMULARIO (MIGRADOS NATIVAMENTE)
   ========================================================================== */
   .contact-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    margin-bottom: 1.5rem;
}

.header-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left; /* Alineado profesional para la estructura de tu formulario */
}

/* El título toma tus variables globales del layout */
.header-text-column .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 0;
    border-bottom: none; /* Quitamos la línea por defecto solo para este título */
}

.header-text-column .section-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.header-graphic-column {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inline-branding-img {
    width: 121px;  /* Ajustado al diseño compacto de tu .container */
    height: 80px;
    object-fit: cover;
    border-radius: 12px; /* Combina con el radio de tus tarjetas .card */
    border: 2px solid rgba(56, 189, 248, 0.2); /* Borde sutil a juego con tu azul tech */
}

/* Adaptabilidad móvil en sintonía con tus breakpoints anteriores */
@media (max-width: 620px) {
    .contact-header-block {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1rem;
    }
    .header-text-column {
text-align: center;}

.header-text-column .section-title {
font-size: 1.5rem;
}
}

/* ==========================================================================
Manejo del COMPONENTE: CONTADOR DE CARACTERES (ESTILO TWITTER)
   ========================================================================== */
   .counter-text {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Estado de alerta crítica cuando le queden pocas letras */
.counter-text.warning-alert {
    color: #ef4444; 
    font-weight: 700;
}


/* ==========================================================================
   COMPONENTE: SELECTOR DE IDIOMAS (CONTROL DE ANCHO Y CENTRADO ABSOLUTO)
   ========================================================================== */
   .lang-card-wrapper {
    margin: 1.5rem auto 2.5rem auto; /* Centra la tarjeta horizontalmente */
    
    /* 🛠️ CONTROL DE ANCHO: Modifica este porcentaje o píxeles a tu gusto */
    width: 100%; 
    max-width: 730px; /* Reducido para que no se disperse tanto en pantallas grandes */
    
    /* Forzado de alineación central para romper el "text-align: left" heredado */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1.25rem !important;
}

.lang-selector-container {
    display: flex !important;
    flex-direction: row !important;
    
    /* 🛠️ DISTRIBUCIÓN: 'space-between' distribuye de extremo a extremo, 
       'space-around' deja márgenes suaves. Cámbialo según prefieras */
    justify-content: space-around !important; 
    align-items: center !important;
    
    width: 100% !important;
    text-align: center !important;
    gap: 10px;
}

.lang-btn-custom {
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centra la bandera sobre el texto */
    justify-content: center !important;
    text-decoration: none;
    gap: 8px; /* Espacio vertical entre bandera y texto */
    flex: 1; /* Distribuye espacio idéntico para cada botón de idioma */
    text-align: center !important;
}

.lang-flag-img {
    display: block;
    width: 32px;
    height: 24px;
    min-width: 32px;
    min-height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.lang-text-label {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-footer);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
    text-align: center; /* Garantiza el centrado estricto del texto */
}

/* Animación suave para mantener tu lógica de escala del JS */
.lang-btn-custom:hover {
    color: var(--accent);
}


/****** LOGO KOFI****/
/* 1. Contenedor Padre: Se comporta como FILA (reparte los elementos en 3 columnas) */
.card-kofi {
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 0.4s ease-in-out; 
    cursor: pointer;
    position: relative;
    max-width: 730px; 
    
    display: flex !important;
    flex-direction: row !important; /* Fuerza las 3 columnas en computadoras */
    justify-content: space-between !important; /* Distribuye el espacio equitativamente */
    align-items: center !important;
    gap: 15px;
    padding: 1.25rem !important;
}

/* 2. Definición base para cada una de las 3 columnas */
.kofi-column {
    flex: 1; /* Hace que las 3 columnas tengan exactamente el mismo ancho base */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajuste específico para las columnas con texto y corazones */
.kofi-text-group {
    gap: 5px; 
    white-space: nowrap; /* Evita que el texto se rompa feo en pantallas medianas */
}

/* 3. REFACTORIZACIÓN DEL LOGO: Quitamos el width fijo rígido */
#logocafe {
    height: 66px;
    width: 100%;
    max-width: 272px; /* Límite para que el café no se estire de más */
    display: inline-flex;
    align-items: center;                     
    justify-content: center;
    color: var(--text-footer);
}

.logokofi {
    display: inline-block;            
    margin: 0 auto; 
    width: 66px;                     
    height: 66px;                    
    background-image: url('../img/Ckofi_logo.png');
    background-size: contain;         
    background-repeat: no-repeat;     
    background-position: center;      
    text-indent: -9999px;             
    overflow: hidden;                 
    transition: transform 0.3s ease;  
}

/* ==========================================
   4. EL TRUCO MAESTRO: Media Query para Celulares 
   ========================================== */
@media (max-width: 550px) {
    .card-kofi {
        flex-direction: column !important; /* Cambia las 3 columnas a 1 sola fila vertical */
        text-align: center;
        gap: 20px; /* Le da un espacio más cómodo de separación vertical */
    }
    
    .kofi-column {
        width: 100%; /* Cada bloque toma todo el ancho disponible del celular */
    }
}

/* Tus hovers se mantienen exactamente iguales */
.logokofi:hover {
    transform: scale(1.28);          
}
.card-kofi:hover {
    border-color: #e67e22; 
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4), inset 0 0 10px rgba(230, 126, 34, 0.1);
    transform: translateY(-2px); 
}
