
/* =========================================================
   🎨 ESTILOS GLOBALES - ARREGLAGO
   Ubicación: src/main/resources/static/css/style.css
   ========================================================= */

/* ------------------------------
   🔹 VARIABLES DE COLOR Y FUENTE
   ------------------------------ */
:root {
    --brand-color: #3887B6;
    --brand-hover: #2f739a;
    --orange-color: #ff7b00;
    --orange-hover: #e96e00;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --font-family: 'Inter', sans-serif;
}

/* ------------------------------
   🔹 CONFIGURACIÓN GLOBAL
   ------------------------------ */
body {
    font-family: var(--font-family);
    color: var(--brand-hover);
    background: linear-gradient(to bottom right, #f8f9fa, #d7ecf7);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ------------------------------
   🔹 NAVBAR
   ------------------------------ */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    width: 65px;
    height: 65px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    color: var(--brand-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand-hover) !important;
}

.dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   🔹 BOTONES
   ------------------------------ */
.btn {
    white-space: nowrap;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-custom {
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
}

.btn-custom:hover {
    background-color: var(--brand-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-orange {
    background-color: var(--orange-color);
    color: #fff;
    border: none;
}

.btn-orange:hover {
    background-color: var(--orange-hover);
}

/* =========================================================
   ✅ NUEVO: PERFIL PROFESIONAL MODERNO
   ========================================================= */

body.perfil-profesional-page {
    background: linear-gradient(to bottom right, #f8f9fa, #d7ecf7);
    padding-top: 120px;
}

.perfil-container {
    max-width: 950px;
    margin: auto;
}

.perfil-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.perfil-foto {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.perfil-badge {
    background: var(--brand-color);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.rating {
    font-size: 1.2rem;
    color: #f5a623;
    margin: 8px 0;
}

.info-item {
    background: #f9fbfd;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--brand-color);
}

.info-item strong {
    color: var(--brand-color);
}

.btn-contratar {
    background: linear-gradient(45deg, var(--orange-color), var(--orange-hover));
    color: white;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
}

.btn-contratar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.reseñas-box {
    background: #e7f3fb;
    padding: 16px;
    border-radius: 12px;
    border-left: 5px solid var(--brand-color);
}

/* Responsive */
@media (max-width: 768px) {
    body.perfil-profesional-page {
        padding-top: 200px;
    }

    .perfil-foto {
        width: 150px;
        height: 150px;
    }
}

/* ------------------------------
   🔹 CONFIGURACIÓN GLOBAL
   ------------------------------ */
body {
    font-family: var(--font-family);
    color: var(--brand-hover);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;

}

/* ------------------------------
   🔹 NAVBAR
   ------------------------------ */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    width: 65px;
    height: 65px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    color: var(--brand-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand-hover) !important;
}

.dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   🔹 BOTONES
   ------------------------------ */
.btn {
    white-space: nowrap;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-custom {
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
}

.btn-custom:hover {
    background-color: var(--brand-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-orange {
    background-color: var(--orange-color);
    color: #fff;
    border: none;
}

.btn-orange:hover {
    background-color: var(--orange-hover);
}

.btn-outline-dark:hover {
    background-color: var(--dark-color);
    color: #fff;
}

/* ------------------------------
   🔹 HERO (BANNER PRINCIPAL)
   ------------------------------ */
.hero {
    height: 90vh;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

/* ------------------------------
   🔹 CATEGORÍAS
   ------------------------------ */
.categories h2 {
    color: var(--brand-color);
}

.category-card {
    transition: all 0.25s ease;
    background-color: #fff;
    border-radius: 1rem;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: var(--light-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ------------------------------
   🔹 PROFESIONALES DESTACADOS
   ------------------------------ */
.card {
    border-radius: 1rem;
}

.card img {
    object-fit: unset !important;
}

.card-title {
    color: var(--brand-color);
    font-weight: 600;
}

/* ------------------------------
   🔹 SECCIÓN "CÓMO FUNCIONA"
   ------------------------------ */
.how-it-works h2 {
    color: var(--brand-color);
}

.how-it-works i {
    color: var(--brand-color);
    transition: transform 0.2s ease;
}

.how-it-works i:hover {
    transform: scale(1.1);
}

/* ------------------------------
   🔹 TESTIMONIOS
   ------------------------------ */
.testimonials h2 {
    color: var(--brand-color);
}

.testimonial {
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

/* ------------------------------
   🔹 FOOTER
   ------------------------------ */
.footer {
    background-color: var(--dark-color);
    color: #fff;
}

.footer a {
    color: #fff;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.7;
}

/* ------------------------------
   🔹 UTILIDADES
   ------------------------------ */
.text-brand {
    color: var(--brand-color) !important;
}

.bg-brand {
    background-color: var(--brand-color) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* ------------------------------
   🔹 RESPONSIVE
   ------------------------------ */
@media (max-width: 768px) {
    body {
        padding-top: 260px !important; /* En móviles tu navbar crece más */
    }
    .navbar-brand img {
        width: 55px;
        height: 55px;
    }

    .hero {
        height: 70vh;
    }

    .btn-custom {
        padding: 0.5rem 1.2rem;
    }
}

/* Botón scroll-to-top */
.scroll-top-btn {
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:hover {
    background-color: var(--brand-hover);
    transform: translateY(-3px);
}

/* Animación de aparición suave */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   🎠 HERO CON CARRUSEL DE IMÁGENES
   ========================================================= */
#heroCarousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#heroCarousel .carousel-item {
    height: 100%;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
    transition: transform 8s ease-in-out;
}

#heroCarousel .carousel-item.active img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 5%;
    z-index: 3;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    background-color: #fff;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}

#heroCarousel .carousel-indicators .active {
    background-color: var(--orange-color);
    opacity: 1;
}

/* ------------------------------
   🔹 MODAL DE LOGIN
   ------------------------------ */
.modal-content {
    border-radius: 1.5rem !important;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header h5 {
    font-size: 1.5rem;
}

.modal-body .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* =========================================================
   🎨 ESTILOS AÑADIDOS - REGISTRO PROFESIONAL
   ========================================================= */

/* Fondo degradado general (usa tus colores de marca) */
body {
    background: linear-gradient(to bottom right, #f8f9fa, #d7ecf7);
    min-height: 100vh;
}

/* Título con degradado usando tus colores */
.title-gradient {
    background: linear-gradient(90deg, var(--brand-color), var(--brand-hover));

    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Espacio adicional al final del formulario */
.form-wrapper {
    margin-bottom: 80px !important;
}

.card .img-profesional {
    width: 90%;              /* NO llena todo el ancho */
    height: 240px;           /* alto uniforme */
    margin: 0 auto;          /* centra la imagen */
    display: block;          /* necesario para margin auto */
    object-fit: cover;       /* recorta sin deformar */
    object-position: top;    /* muestra la cara */
    border-radius: 12px;     /* borde elegante */
    background-color: #f8f8f8;
}

/* ============================================
   ⭐ NUEVO DISEÑO - Categorías de Servicios
   ============================================ */

.category-box {
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid #e4e4e4;
}

.category-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    border-color: transparent;
}

/* Ícono circular más grande */
.icon-wrapper {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e8f3fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 32px;
    color: #3887B6;
}

/* Texto */
.category-box h6 {
    font-size: 1rem;
    color: var(--brand-color);
    margin-top: 8px;
}

/* =========================================================
   🎨 PROFESIONALES DESTACADOS PREMIUM (NUEVO)
   ========================================================= */

.professional-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 20px auto 10px auto;
    border: 4px solid #f1f1f1;
}


.verified-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0d6efd;
    color: white;
    padding: 6px 8px;
    border-radius: 50%;
    font-size: 1rem;
}

.professional-card {
    transition: all 0.25s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stars {
    letter-spacing: 2px;
}

.category-click {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-click:hover {
    transform: translateY(-6px);
    background: #fcac60;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* =========================================================
   PERFIL PROFESIONAL - ESTILOS EXCLUSIVOS
   ========================================================= */

body.perfil-profesional-page {
    background: #f5f7fa;
    padding-top: 120px;
}

/* Contenedor principal */
.perfil-container {
    max-width: 900px;
}

/* Foto perfil */
.perfil-foto {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: auto;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Card principal */
.perfil-card {
    border-radius: 1rem;
    padding: 30px;
}

/* Rating */
.rating {
    font-size: 1.2rem;
    color: #f5a623;
}

/* Items de información */
.info-item {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* Ajustes finos del navbar SOLO para perfil */
body.perfil-profesional-page .navbar {
    height: 90px;
}

body.perfil-profesional-page .navbar-brand img {
    height: 60px;
}

body.perfil-profesional-page .navbar .form-control {
    height: 45px;
}

body.perfil-profesional-page .navbar .btn {
    height: 45px;
    display: flex;
    align-items: center;
}

/* Espaciado superior elegante */
body.perfil-profesional-page .perfil-container {
    margin-top: 20px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    body.perfil-profesional-page {
        padding-top: 200px;
    }
}
