/* --- Configuración de Paleta de Colores y Tipografía --- */
:root {
    --brand-red: #130A38;
    --brand-yellow: #D4FF24;
    --brand-blue: #6d78f7;
    --brand-lblue: #b6a1fd;
    --brand-beige: #545069;
    --brand-dark: #130A38;
    --brand-bg-light: #fbf9f6;
    --brand-soft-lime: #f3fecc;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--brand-dark);
    background-color: var(--brand-bg-light);
    overflow-x: hidden;
}

/* Clases de utilidad personalizadas basadas en tu estilo */
.fw-black { font-weight: 900; }
.bg-brand-red { background-color: var(--brand-red); }
.bg-brand-yellow { background-color: var(--brand-yellow); }
.bg-brand-blue { background-color: var(--brand-blue); }
.text-brand-blue { color: var(--brand-blue); }

/* --- 1. Hero Section --- */
.hero-section {
    background-color: var(--brand-soft-lime);
    min-height: 90vh;
    position: relative;
}

.hero-section-not-home {
    background-color: var(--brand-red);
    min-height: 20vh;
    position: relative;
}

/* Texto de agua gigante trasero */
.watermark-hello {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24vw;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.07);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.social-sidebar {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
}

/* --- 2. Mosaicos de Arte Geométrico --- */
.abstract-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    height: 100%;
    min-height: 450px;
}
.art-block { width: 100%; height: 100%; }
.art-bg-blue { background-color: var(--brand-blue); }
.art-bg-lblue { background-color: var(--brand-lblue); }
.art-bg-red { background-color: var(--brand-red); }
.art-bg-beige { background-color: var(--brand-beige); }
.art-bg-yellow { background-color: var(--brand-yellow); }
.art-bg-white { background-color: #ffffff; }
.art-bg-soft-lime { background-color: var(--brand-soft-lime); }

/* Recortes con clip-path */
.triangle-br { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.triangle-tl { clip-path: polygon(0 0, 100% 0, 0 100%); }
.triangle-tr { clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* --- 3. Posicionamiento de Mockups sobre los bloques --- */
.mockup-wrapper {
    position: relative;
}

.floating-phones {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    z-index: 10;
}

.phone-container {
    width: 165px;
    height: 330px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 4px solid #f4f1eb;
}

/* Mockup de navegador en Sección "My Works" */
.browser-container {
    position: absolute;
    top: 50%;
    left: 28%;
    transform: translate(-25%, -50%);
    width: 580px;
    height: 340px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    z-index: 10;
}

/* --- 4. Portfolio Flush Grid (Fila de Mosaicos de Trabajo) --- */
.portfolio-grid-row {
    min-height: 400px;
}

.portfolio-square {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

/* --- Ajustes de Adaptabilidad (Media Queries) --- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 3rem; }
    .social-sidebar { display: none !important; }
    .floating-phones, .browser-container {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: 40px auto;
        width: 100%;
        max-width: 320px;
        height: auto;
        justify-content: center;
    }
    .browser-container {
        max-width: 100%;
        height: 300px;
        padding: 15px;
    }
    .portfolio-square { min-height: 320px; }
}

/* --- Estructura del Menú Pantalla Completa --- */
/* HEADER */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

}

/* NAV */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */

.logo {
    text-decoration: none;
    color: white;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo img{
    width: 200px;
}

.hero-content {

    /*margin-top: 80px;*/

}

/* BOTÓN HAMBURGUESA */

.menu-toggle {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 9999;
}

.menu-toggle-yellow {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 9999;
}

/* LÍNEAS */

.menu-toggle span {
    width: 35px;
    height: 3px;
    background: var(--brand-red);
    border-radius: 20px;
    transition: 0.3s ease;
}

.menu-toggle-yellow span {
    width: 35px;
    height: 3px;
    background: var(--brand-yellow);
    border-radius: 20px;
    transition: 0.3s ease;
}

/* MENÚ OCULTO */

.main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: #130A38;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 9998;
}


/* MENÚ ACTIVO */

.main-navigation.active {
    right: 0;
}

/* LISTA */

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
}

/* LINKS */
.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.nav-menu li a:hover {
    color: #D4FF24;
}

.menu-toggle.active span:nth-child(1){
    transform:
    rotate(45deg)
    translate(7px,7px);
}

.menu-toggle.active span:nth-child(2){
    opacity: 0;
}

.menu-toggle.active span:nth-child(3){
    transform:
    rotate(-45deg)
    translate(7px,-7px);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

@media(max-width: 768px){
    .container {
        width: 92%;
    }

}

.badge {
            border-radius: 12px;
            font-size: 0.75rem;
            padding: 2px 8px;
            font-weight: normal;
        }
.leido {
    background-color: green;
    color: white;
}
.no-leido {
    background-color: orange;
    color: white;
}
  .contenedor {
   width: 100%; /* Ajusta el ancho deseado */
   height: 500px; /* Ajusta el alto deseado para el recorte */
   overflow: hidden; /* Oculta lo que sobresale del contenedor */
  }
  .contenedor img {
width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción cubriendo el espacio */
  object-position: bottom; /* Enfoca el recorte en la parte inferior */
  }

  /* ===== About Me Page Styles (Alex Daniels) ===== */

/* Hero de la página about */
.about-hero {
    min-height: 100vh;
    background-color: var(--brand-soft-lime);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}
.hero-badge {
    font-size: 0.8rem;
    letter-spacing: 1px;
    background-color: var(--brand-red);
    color: white;
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 40px;
}
.display-1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
}
.text-brand-blue {
    color: var(--brand-blue);
}
.btn-primary {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}
.btn-primary:hover {
    background-color: #0e0728;
    border-color: #0e0728;
}
.rounded-circle {
    border-radius: 50% !important;
}
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

/* Mosaico pequeño decorativo */
.abstract-mosaic-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 200px;
    margin: 0 auto;
}
.abstract-mosaic-small .art-block {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.art-bg-lblue { background-color: var(--brand-lblue); }
.art-bg-beige { background-color: var(--brand-beige); }
.art-bg-red { background-color: var(--brand-red); }
.art-bg-blue { background-color: var(--brand-blue); }

/* Sección "Get To Know Me" */
.about-know-me {
    background-color: white;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-number.text-brand-blue {
    color: var(--brand-blue);
}

/* Sección Experience */
.bg-light-gray {
    background-color: #f8f9fa;
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.badge.bg-brand-blue {
    background-color: var(--brand-blue);
    color: white;
}
.badge.bg-brand-red {
    background-color: var(--brand-red);
    color: white;
}
.badge.bg-brand-yellow {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
}
.card .list-unstyled li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Habilidades y barras de progreso */
.about-skills {
    background-color: white;
}
.skill-item .progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}
.progress-bar.bg-brand-blue {
    background-color: var(--brand-blue);
}
.progress-bar.bg-brand-red {
    background-color: var(--brand-red);
}
.progress-bar.bg-brand-yellow {
    background-color: var(--brand-yellow);
}
.skill-item .progress-bar {
    transition: width 0.6s ease;
}

/* Sección de contacto (Let's Get Creative) */
.about-contact {
    background-color: var(--brand-yellow);
}
.about-contact .btn-dark {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}
.about-contact .btn-dark:hover {
    background-color: #0e0728;
    transform: translateY(-2px);
}

/* Ajustes responsivos */
@media (max-width: 991.98px) {
    .about-hero {
        text-align: center;
        padding-top: 100px;
    }
    .about-hero .display-1 {
        font-size: 3.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
}
@media (max-width: 767.98px) {
    .about-hero {
        padding-top: 80px;
    }
    .display-1 {
        font-size: 2.8rem;
    }
    .card {
        margin-bottom: 1rem;
    }
}

.btn-neon {
    background-color: #D4FF24;
    color: #000000;
    border: none;
}

.btn-neon:hover {
    background-color: #b5e01f; /* Un tono ligeramente más oscuro al pasar el cursor */
    color: #000000;
}

/* Chat widget */
#ai-chat-widget {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}
#chat-messages .message {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}
#chat-messages .user {
    text-align: right;
    color: #130A38;
}
#chat-messages .bot {
    text-align: left;
    color: #333;
}
#chat-messages .bot.error {
    color: #e45c5c;
}
#chat-input:focus {
    border-color: #D4FF24;
    box-shadow: 0 0 0 2px rgba(212,255,36,0.2);
}

/* Widget de chat flotante */
#ai-chat-widget {
    font-family: 'Roboto', sans-serif;
}
#chat-messages {
    font-size: 0.9rem;
    line-height: 1.4;
}
#chat-messages .message.user {
    background-color: #D4FF24;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px 20px 4px 20px;
    max-width: 85%;
    margin-left: auto;
    text-align: right;
}
#chat-messages .message.bot {
    background-color: #f0f0f0;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px 20px 20px 4px;
    max-width: 85%;
}
#chat-messages .message {
    margin-bottom: 12px;
    clear: both;
}
#chat-messages .message.bot.error {
    background-color: #ffe0e0;
}