/* ------------------------------------------- */
/* FUENTES PERSONALIZADAS (ElegantIcons) */
/* ------------------------------------------- */
@font-face {
    font-family: 'ElegantIcons';
    src: url('../fonts/ElegantIcons.eot');
    src: url('../fonts/ElegantIcons.eot?#iefix') format('embedded-opentype'),
        url('../fonts/ElegantIcons.woff') format('woff'),
        url('../fonts/ElegantIcons.ttf') format('truetype'),
        url('../fonts/ElegantIcons.svg#ElegantIcons') format('svg');
    font-weight: normal;
    font-style: normal;
}


/* 8. Estilos Generales */
:root {
    --color-negro: #000000;
    --color-blanco: #FFFFFF;
    --color-gris-claro: #f5f5f5;
    --color-dorado: #d4af37;
    --color-gris-oscuro: #333333;
    /* Usamos fuentes del sistema/fallback, ya que las fuentes de Google fueron removidas */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, sans-serif;
    --transition-time: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Añadido para el header fijo */
}

body {
    font-family: var(--font-sans);
    color: var(--color-negro);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Títulos y Párrafos */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    color: var(--color-gris-claro);
    text-align: center;
}


.section-title {
    font-size: 32px;
    margin-bottom: 40px;
}

/* Botones */
.btn-gold,
.btn-gold-sm {
    display: inline-block;
    background-color: var(--color-dorado);
    color: var(--color-negro);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--color-dorado);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-gold:hover,
.btn-gold-sm:hover {
    background-color: var(--color-negro);
    color: var(--color-dorado);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.5);
}

.btn-gold:disabled,
.btn-gold-sm:disabled {
    background-color: #777;
    border-color: #777;
    color: #bbb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-gold-sm {
    padding: 8px 15px;
    font-size: 14px;
}

/* Status Messages (Para formulario de reserva) */
.status-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
}

/* Loader style para la IA */
.loader {
    border: 4px solid var(--color-gris-oscuro);
    border-top: 4px solid var(--color-dorado);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Status Messages para la IA */
.status-message-ia {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    min-height: 20px;
    color: var(--color-blanco);
}

.status-message-ia.error {
    color: red;
}

.status-message-ia.loading {
    color: var(--color-dorado);
}


/* ------------------------------------------- */
/* Header */
/* ------------------------------------------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-negro);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-blanco);
    /* Estilo para el contenedor del logo (AHORA ES UN ENLACE) */
    display: block;
    height: 40px;
    /* Alto fijo para el logo en el header */
}

.logo img {
    /* Estilo para la imagen del logo */
    height: 100%;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo span {
    color: var(--color-dorado);
}

#header nav ul {
    list-style: none;
    display: flex;
}

#header nav ul li a {
    color: var(--color-blanco);
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: color var(--transition-time);
    padding-bottom: 5px;
    position: relative;
}

#header nav ul li a:hover {
    color: var(--color-dorado);
}


/* ------------------------------------------- */
/* Hero Slider Mejorado */
/* ------------------------------------------- */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 1.2s ease-in-out;
    /* transición más suave */
}

.hero-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 12%;
    /* mover más a la izquierda */
    transform: translateY(-50%);
    text-align: left;
    /* textos alineados a la izquierda */
    z-index: 2;
    width: 40%;
    color: var(--color-blanco);
}

.slider-content .slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-content .slide.active {
    opacity: 1;
    pointer-events: auto;
    animation: slideInText 1.2s ease forwards;
}

/* Animación de textos */
@keyframes slideInText {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación de salida (opcional) */
@keyframes slideOutText {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(50px);
        opacity: 0;
    }
}

/* Títulos */
.slider-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.slider-content h1 {
    font-size: 55px;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    font-family: var(--font-serif);
    line-height: 1.2;
}

.slider-content p {
    font-size: 18px;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    max-width: 550px;
}


/* ------------------------------------------- */
/* Sección Introducción */
/* ------------------------------------------- */
section {
    padding: 100px 0;
}

.section-intro {
    background-color: var(--color-blanco);
    text-align: left;
}

.section-intro .container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-left {
    flex: 1;
}

.intro-left h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-align: left;
    color: var(--color-negro);
}

.intro-left p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.intro-right {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.intro-image-container.active {
    opacity: 1;
    transform: translateX(0);
}

.intro-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------- */
/* Sección Servicios */
/* ------------------------------------------- */
.section-services {
    background-color: var(--color-gris-claro);
    text-align: center;
}

.section-services h3 {
    font-size: 28px;
    margin-bottom: 50px;
    /* CAMBIO A DORADO: Ahora el título usará el color de marca dorado */
    color: var(--color-dorado);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-blanco);
    padding: 30px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 36px;
    color: var(--color-dorado);
    margin-bottom: 15px;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-negro);
}

.service-card p {
    margin-bottom: 20px;
    font-size: 15px;
}

/* ------------------------------------------- */
/* SECCIÓN: RESERVA (BOOKING) */
/* ------------------------------------------- */
.section-book {
    background-color: var(--color-negro);
    color: var(--color-blanco);
    padding: 100px 0;
    background-image: url('img/book-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.section-book .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    z-index: 2;
    position: relative;
}

.book-content {
    flex: 1;
    max-width: 450px;
    padding-top: 20px;
}

.book-content h2 {
    color: var(--color-dorado);
    font-size: 40px;
    text-align: left;
    margin-bottom: 20px;
}

.book-content p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.appointment_form {
    flex: 1;
    max-width: 550px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-gris-oscuro);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.appointment_form input,
.appointment_form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #222;
    color: var(--color-blanco);
    font-size: 15px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.appointment_form input:focus,
.appointment_form select:focus {
    border-color: var(--color-dorado);
    outline: none;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.appointment_form select {
    background-image: url("img/book-bg.jpg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.appointment_form .btn-gold {
    width: 100%;
    margin-top: 10px;
    font-size: 18px;
}

/* ------------------------------------------- */
/* NUEVA SECCIÓN: Asesor IA */
/* ------------------------------------------- */
.section-ia-advisor {
    background-color: var(--color-gris-oscuro);
    color: var(--color-blanco);
    text-align: center;
}

.section-ia-advisor .section-title {
    color: var(--color-dorado);
}

.ia-subtitle {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.ia-form-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#style-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #1a1a1a;
    color: var(--color-blanco);
    font-family: var(--font-sans);
    font-size: 16px;
    resize: vertical;
}

#style-input::placeholder {
    color: #888;
}

#generate-style-btn {
    width: auto;
    padding-left: 30px;
    padding-right: 30px;
}


/* ------------------------------------------- */
/* Sección Barberos (Ajuste para centrar texto) */
/* ------------------------------------------- */
.section-barberos {
    background-color: var(--color-blanco);
    /* Fondo blanco */
    padding: 80px 0;
    text-align: center;
}

.section-barberos h3 {
    font-size: 28px;
    margin-bottom: 50px;
    color: var(--color-dorado);

}

.barberos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.barbero-card {
    background-color: var(--color-gris-claro);
    padding: 20px;
    border-radius: 8px;
    transition: all var(--transition-time);
}

.barbero-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.barbero-photo-container {
    width: 100%;
    /* Ajuste a tamaño de tarjeta */
    height: 200px;
    margin: 0 auto 15px;
    border: 3px solid var(--color-dorado);
    overflow: hidden;
    border-radius: 6px;
}

.barbero-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barbero-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.barbero-card p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    margin-bottom: 15px;
    min-height: 40px;
}

.social-icons a {
    color: var(--color-negro);
    margin: 0 8px;
    font-size: 18px;
    transition: color var(--transition-time);
}

.social-icons a:hover {
    color: var(--color-dorado);
}


/* ------------------------------------------- */
/* MODAL (Ventana de diálogo para resultados IA) */
/* ------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--color-blanco);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close-btn {
    color: var(--color-negro);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-dorado);
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    color: var(--color-dorado);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-gris-claro);
    padding-bottom: 10px;
    text-align: left;
}

#modal-body p {
    margin-bottom: 15px;
    text-align: left;
}

#modal-body strong {
    color: var(--color-negro);
    font-weight: 700;
    font-family: var(--font-serif);
    display: block;
    margin-top: 10px;
    font-size: 18px;
}

#modal-body ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

#modal-body li {
    margin-bottom: 5px;
}

/* ------------------------------------------- */
/* Footer */
/* ------------------------------------------- */
.section-footer {
    background-color: var(--color-negro);
    color: var(--color-blanco);
    padding-top: 60px;
    padding-bottom: 0;
}

.section-footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-col {
    padding: 10px;
}

.footer-col .logo {
    /* Ajuste de tamaño para el logo en el footer */
    height: 50px;
    margin-bottom: 15px;
    display: inline-block;
    /* Permitir centrado en móvil */
}


.footer-col h5 {
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--color-dorado);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-time);
}

.footer-col ul li a:hover {
    color: var(--color-dorado);
}

.social-icons-footer a {
    color: var(--color-blanco);
    font-size: 24px;
    margin-right: 15px;
    transition: color var(--transition-time);
}

.social-icons-footer a:hover {
    color: var(--color-dorado);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    background-color: #111;
    /* Un tono un poco más oscuro para el copyright */
}

/* Media Queries (Responsive Design) */
@media (max-width: 992px) {
    .slider-content {
        left: 8%;
        width: 60%;
    }

    .slider-content h1 {
        font-size: 42px;
    }

    .slider-content p {
        font-size: 16px;
        max-width: 450px;
    }

    /* Intro Section */
    .section-intro .container {
        flex-direction: column;
        text-align: center;
    }

    .intro-right {
        margin-top: 30px;
        height: 350px;
    }

    /* Services & Barberos */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .barberos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reserva Section */
    .section-book .container {
        flex-direction: column;
        align-items: center;
    }

    .book-content h2 {
        text-align: center;
    }

    .book-content {
        padding-top: 0;
    }

    .book-content,
    .appointment_form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .slider-content {
        left: 50%;
        transform: translate(-50%, -50%);
        /* centrar */
        width: 85%;
        text-align: center;
        /* centrado en móvil */
    }

    .slider-content h3 {
        font-size: 18px;
    }

    .slider-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .slider-content p {
        font-size: 14px;
        margin-bottom: 25px;
        max-width: 100%;
    }

    /* Header */
    #header {
        flex-direction: column;
        padding: 15px 20px;
    }

    #header nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #header nav ul li a {
        margin: 5px 10px;
    }

    /* Hero */
    .slider-content h1 {
        font-size: 32px;
    }

    /* Secciones */
    section {
        padding: 60px 0;
    }

    /* Servicios y Barberos */
    .services-grid,
    .barberos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Reserva Section */
    .form-group-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Footer */
    .section-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h5 {
        margin-top: 15px;
    }

    .social-icons-footer {
        display: flex;
        justify-content: center;
    }
}

/* Animaciones más cortas en móvil */
@keyframes slideInText {
    from {
        transform: translateX(-25px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutText {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(25px);
        opacity: 0;
    }
}


/* Extra pequeño (ej. < 480px) */
@media (max-width: 480px) {
    .slider-content h1 {
        font-size: 26px;
    }

    .slider-content p {
        font-size: 13px;
    }

    .btn-gold {
        padding: 10px 18px;
        font-size: 14px;

    }
}
/* =========================================
   ESTILOS: CRÉDITO DEL PROYECTO (FOOTER)
   ========================================= */

/* Nuevo estilo para la línea de atribución en el footer */
.project-credit {
    font-size: 0.8rem; /* Tamaño ligeramente más legible */
    color: rgba(255, 255, 255, 0.7); /* Gris claro */
    margin-top: 15px; /* Más espacio arriba */
    padding-top: 15px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    display: flex; /* Usamos flexbox para centrar y alinear */
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center;
    gap: 10px; /* Espacio entre el texto y los iconos */
}

.project-credit a {
    color: var(--color-dorado); /* Color dorado para Nexento */
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

.project-credit a:hover {
    color: var(--color-blanco);
}

/* Contenedor de los iconos dentro de la línea de crédito */
.nexento-social-credit a {
    font-size: 1rem; /* Tamaño de los iconos */
    margin-left: 5px;
    color: var(--color-dorado);
}

.nexento-social-credit a:hover {
    color: var(--color-blanco);
}

/* Aseguramos que la columna 'Síguenos' se elimine del layout en pantallas grandes si no se usa más */
/* Si usaste la estructura de 3 columnas, y quieres ocultar la 3ra, es mejor ajustarla manualmente en el HTML como hice arriba */