/* Importar fuente local Azonix */
@font-face {
    font-family: 'Azonix';
    src: url('../fonts/azonix.otf') format('opentype');
    /* Si tu archivo fuera .ttf, usa format('truetype') */
    font-weight: normal;
    font-style: normal;
}


/* css/styles.css */

body {
    font-family: 'Arial', sans-serif; /* Puedes cambiar esto luego */
}

/* Ejemplo: Cambiar el color del header si no te gusta el gris de Bootstrap */
header {
    background-color: #f8f9fa; /* Color de fondo suave */
}

/* Ajuste para que las imágenes no se rompan */
img {
    max-width: 100%;
    height: auto;
}

/* Título Principal (FENIX) */
.display-4 {
    font-family: 'Azonix', sans-serif; /* <--- AQUÍ LA USAMOS */
    font-size: 4rem; /* Ajusta el tamaño si Azonix se ve chica o grande */
    letter-spacing: 4px; /* Azonix ya es ancha, quizás no necesites tanto espacio */
    margin-bottom: 0.5rem;
}

/* Descripción (Lead) */
.lead {
    font-family: 'Lato', sans-serif; /* La fuente limpia */
    font-weight: 300; /* 300 es Light, muy fino y moderno */
    font-size: 1.4rem; /* Un poco más grande para mejor lectura */
    line-height: 1.6; /* Altura de línea para que el texto "respire" */
    color: #415A77; /* Azul acero para el texto */
}

/* OPCIONAL: Para que TODOS los títulos (Servicios, Contacto) también sean elegantes */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* --- BOTONES PERSONALIZADOS --- */

/* 1. Botón Email (#415A77) */
.btn-email {
    background-color: #415A77;
    border-color: #415A77;
    color: white; /* Texto blanco */
}

.btn-email:hover {
    background-color: #2F4258; /* Versión más oscura para el efecto */
    border-color: #2F4258;
    color: white;
}

/* 2. Botón Instagram (#E1306C) */
.btn-instagram {
    background-color: #E1306C;
    border-color: #E1306C;
    color: white;
}

.btn-instagram:hover {
    background-color: #C11E55; /* Versión más oscura */
    border-color: #C11E55;
    color: white;
}




/* FONDO DEL ENCABEZADO */
.hero-header {
    /* Un azul marino profundo con transparencia */
    background-image: 
        linear-gradient(to bottom, rgba(15, 52, 96, 0.7), rgba(15, 52, 96, 0.4)), 
        url('../img/fondo-header-2.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* =========================================
   3. TIPOGRAFÍA (ORDEN: H2 ARRIBA -> H1 ABAJO)
   ========================================= */

/* 1. SUBTÍTULO (Va PRIMERO visualmente) */
#subtitulo {
    font-family: 'Montserrat', sans-serif;
    
    /* Estilo visual */
    text-transform: uppercase;
    font-size: 1.0rem; 
    font-weight: 400; 
    letter-spacing: 4px; 
    color: #ececec; 
    
    /* AJUSTE DE DISTANCIA */
    display: block; /* Asegura que sea un bloque */
    margin-bottom: 4px; /* Eliminamos el margen hacia abajo */
    padding-bottom: 0; 
    line-height: 1.2; /* Altura normal para texto pequeño */
}
#subtitulo2 {
    font-family: 'Montserrat', sans-serif;
    
    /* Estilo visual */
    text-transform: uppercase;
    font-size: 1.0rem; 
    font-weight: 400; 
    letter-spacing: 7px; 
    color: #ececec; 
    
    /* AJUSTE DE DISTANCIA */
    display: block; /* Asegura que sea un bloque */
    margin-bottom: 0; /* Eliminamos el margen hacia abajo */
    padding-bottom: 0; 
    line-height: 1.2; /* Altura normal para texto pequeño */
}

/* 2. TÍTULO PRINCIPAL (Va SEGUNDO visualmente) */
#phoenix-title {
    /* Tipografía */
    font-family: 'Azonix', sans-serif;
    font-weight: 700;
    font-size: 4.3rem;
    text-transform: uppercase;
    letter-spacing: 8px;

    /* Color degradado */
    background-image: linear-gradient(to right, #E65100 0%, #ececec 0%);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: transparent;
    display: inline-block; 

    /* AJUSTE DE DISTANCIA (La clave está aquí) */
    margin-top: -1px; /* Margen negativo para "subirlo" hacia el subtítulo */
    margin-bottom: 0;
    line-height: 0.9; /* Reduce la altura de línea para quitar aire superior */
}

/* --- SECCIÓN BIO & SKILLS --- */
.section-bio {
    padding: 80px 0; /* Espacio arriba y abajo */
    background-color: #ffffff; /* Fondo limpio */
}

/* Título de la sección */
.section-title {
    font-family: 'Azonix', sans-serif;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Pequeña línea decorativa naranja debajo del título */
.divider {
    height: 3px;
    width: 60px;
    background-color: #E65100; /* Tu naranja Phoenix */
    margin-bottom: 20px;
}

/* Texto del párrafo */
.bio-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8; /* Importante para leer textos largos */
    color: #555;
}

/* Subtítulo de habilidades */
.skills-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #415A77; /* Azul acero */
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Diseño de las etiquetas (badges) */
.skill-badge {
    display: inline-block;
    background-color: #f1f1f1;
    color: #333;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 50px; /* Bordes redondos */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.skill-badge:hover {
    background-color: #E65100; /* Se vuelve naranja al pasar el mouse */
    color: white;
    border-color: #E65100;
    transform: translateY(-3px); /* Se levanta un poquito */
}

/* --- ANIMACIÓN SCROLL (MAGIA) --- */

/* 1. Estado inicial: Invisible y desplazado hacia abajo */
.reveal-on-scroll {
    opacity: 0;
    /* transition: all 0.8s ease-in-out; <--- Asegúrate de que esto esté así */
    transition: all 0.8s ease-in-out;
}

/* 2. Estado visible: Opacidad total y en su lugar original */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- ANIMACIONES LATERALES --- */

/* 1. Variante: Venir desde la IZQUIERDA */
.reveal-on-scroll.from-left {
    transform: translateX(-100px); /* Empieza 100px a la izquierda */
}

/* 2. Variante: Venir desde la DERECHA */
.reveal-on-scroll.from-right {
    transform: translateX(100px); /* Empieza 100px a la derecha */
}

/* 3. REGLA MAESTRA: El estado final */
/* Esto asegura que cuando se active, vuelva al centro exacto (0,0) */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0); 
}

/* IMPORTANTE: Evita que aparezca una barra de scroll horizontal 
   mientras los elementos entran desde los lados */
body {
    overflow-x: hidden;
}

/* --- Wrapper y Tarjeta Perfil --- */
.fondo-final-wrapper {
    background-image: linear-gradient(to bottom,  rgba(15, 52, 96, 0.7), rgba(15, 52, 96, 0.4)), url('../img/fondo-header-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto elegante */
    padding-top: 30px;
    padding-bottom: 0px;
}

.perfil-card {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Evitar barra horizontal */
body { overflow-x: hidden; }

/* FORZAR TRANSPARENCIA EN EL CONTENEDOR DEL PERFIL */
#sobre-mi {
    /* Forzamos que la sección del perfil no tenga espacio extra abajo */
    padding-bottom: 0 !important; 
    margin-bottom: 20px; /* Solo un pequeño margen de separación */
    
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
}