/* =============================================
   SERVICIOS BAHÍA - CSS PRINCIPAL v1.0
   ============================================= */

/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #F7F9FC;
    color: #4A5568;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   NAVEGACIÓN
   ============================================= */

nav {
    background: #1B3A5C;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo span.logo-naranja {
    color: #F4A623;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #F4A623;
}

.btn-unete-nav {
    background: #F4A623;
    color: #1B3A5C !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.btn-unete-nav:hover {
    background: #e09515 !important;
    color: #1B3A5C !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animación X al abrir */
.nav-hamburger-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger-open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 16px;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links a {
        display: block;
        padding: 13px 8px;
        font-size: 1rem;
    }

    .btn-unete-nav {
        margin: 6px 0 0;
        border-radius: 8px;
        text-align: center;
        padding: 12px 8px !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: auto;
        min-height: 65px;
        padding: 0 0 0;
        background: #1B3A5C;
    }

    .nav-links {
        background: #1B3A5C;
        padding-bottom: 16px;
    }
}

/* =============================================
   BOTONES GLOBALES
   ============================================= */

.btn-primary {
    display: inline-block;
    background: #F4A623;
    color: #1B3A5C;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e09515;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: #1B3A5C;
    color: white;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #152d47;
    transform: translateY(-2px);
}

.btn-ws {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-ws:hover {
    background: #1fb855;
    transform: translateY(-2px);
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: #1B3A5C;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.88rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
}

.footer-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-link:hover { color: #F4A623; }
.footer-link-ws:hover { color: #25D366; }
.footer-link-mail:hover { color: #60a5fa; }
.footer-link-ig:hover { color: #F4A623; }

/* =============================================
   HOME - INDEX
   ============================================= */

.home-hero {
    background: linear-gradient(135deg, #1B3A5C 0%, #2d5a8e 100%);
    padding: 90px 20px 110px;
    text-align: center;
}

.home-hero-inner {
    max-width: 750px;
    margin: 0 auto;
}

.home-hero h1 {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.home-hero h1 span {
    color: #F4A623;
}

.home-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    line-height: 1.7;
}

.home-hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* STATS */
.home-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: -35px auto 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px 40px;
    position: relative;
    z-index: 10;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 6px;
}

.stat-numero {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1B3A5C;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: #eee;
    margin: 0 10px;
}

/* RUBROS GRID */
.home-rubros {
    max-width: 1100px;
    margin: 70px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.home-section-title {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #1B3A5C;
    margin-bottom: 15px;
    font-weight: 700;
}

.home-section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 45px;
}

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

.rubro-card {
    background: white;
    border-radius: 18px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.rubro-card:hover {
    border-color: #F4A623;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rubro-icono {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 12px;
}

.rubro-nombre {
    font-size: 1rem;
    font-weight: 700;
    color: #1B3A5C;
    margin-bottom: 6px;
}

.rubro-count {
    font-size: 0.8rem;
    color: #aaa;
}

/* CÓMO FUNCIONA */
.home-como {
    background: white;
    padding: 70px 20px;
}

.home-como-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.home-pasos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.home-paso {
    background: #F7F9FC;
    border-radius: 20px;
    padding: 35px 25px;
    width: 220px;
    text-align: center;
}

.home-paso-numero {
    width: 48px;
    height: 48px;
    background: #F4A623;
    color: #1B3A5C;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.home-paso h4 {
    color: #1B3A5C;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.home-paso p {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.5;
}

.home-paso-flecha {
    font-size: 2rem;
    color: #ddd;
}

/* CTA PROFESIONALES */
.home-cta-pro {
    background: linear-gradient(135deg, #F4A623 0%, #e09515 100%);
    padding: 70px 20px;
    text-align: center;
}

.home-cta-pro-inner {
    max-width: 600px;
    margin: 0 auto;
}

.home-cta-pro h2 {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #1B3A5C;
    margin-bottom: 15px;
    font-weight: 700;
}

.home-cta-pro p {
    color: rgba(27,58,92,0.8);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* =============================================
   PÁGINA DE RUBRO
   ============================================= */

.rubro-hero {
    background: linear-gradient(135deg, #1B3A5C 0%, #2d5a8e 100%);
    padding: 60px 20px 80px;
    text-align: center;
}

.rubro-hero-inner {
    max-width: 650px;
    margin: 0 auto;
}

.rubro-hero-icono {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 15px;
}

.rubro-hero h1 {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 12px;
}

.rubro-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

/* FILTROS RUBRO */
.rubro-filtros {
    background: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    position: sticky;
    top: 65px;
    z-index: 100;
}

.rubro-filtros-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 180px;
}

.filtro-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-input {
    padding: 11px 16px;
    border-radius: 10px;
    border: 1.5px solid #eee;
    font-family: inherit;
    font-size: 0.92rem;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border 0.2s ease;
}

.filtro-input:focus {
    border-color: #F4A623;
    background: white;
}

.filtro-checkbox-grupo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
}

.filtro-checkbox-grupo input {
    width: 18px;
    height: 18px;
    accent-color: #F4A623;
    cursor: pointer;
}

.filtro-checkbox-grupo label {
    font-size: 0.92rem;
    color: #444;
    cursor: pointer;
    font-weight: 600;
}

.btn-filtrar {
    padding: 11px 30px;
    background: #1B3A5C;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtrar:hover {
    background: #152d47;
}

/* RESULTADOS */
.rubro-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.rubro-contador {
    margin-bottom: 20px;
    color: #888;
    font-size: 0.92rem;
}

.rubro-contador strong {
    color: #1B3A5C;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* TARJETA PROFESIONAL */
.pro-card {
    background: white;
    border-radius: 18px;
    padding: 35px 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border: 2px solid transparent;
}

.pro-card:hover {
    border-color: #F4A623;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pro-card-foto {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #F7F9FC;
    margin: 0 auto;
    display: block;
}

.pro-card-foto-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    background: #E8F4FD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
}

.pro-card-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B3A5C;
    text-align: center;
}

.pro-card-ciudad {
    font-size: 0.88rem;
    color: #888;
    text-align: center;
}

.pro-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.pro-card-tag {
    background: #E8F4FD;
    color: #1B3A5C;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.pro-card-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.pro-card-estrellas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pro-card-estrellas-texto {
    font-size: 0.78rem;
    color: #888;
}

.btn-ver-perfil {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 1.5px solid #1B3A5C;
    color: #1B3A5C;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-ver-perfil:hover {
    background: #1B3A5C;
    color: white;
}

.btn-ws {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-ws:hover {
    background: #1fb855;
    transform: translateY(-2px);
}

/* EMPTY STATE */
.rubro-empty {
    text-align: center;
    padding: 70px 20px;
    grid-column: 1 / -1;
}

.rubro-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.rubro-empty h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.rubro-empty p {
    color: #888;
    font-size: 0.97rem;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* =============================================
   PERFIL PROFESIONAL
   ============================================= */

.perfil-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.perfil-volver {
    margin-bottom: 25px;
}

.perfil-volver-link {
    color: #888;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.perfil-volver-link:hover {
    color: #F4A623;
}

.perfil-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.perfil-col-izq {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 24px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: center;
    position: sticky;
    top: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.perfil-foto {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid #F7F9FC;
}

.perfil-foto-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    background: #E8F4FD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.perfil-nombre {
    font-size: 1.3rem;
    color: #1B3A5C;
    font-weight: 700;
    line-height: 1.3;
}

.perfil-rubro {
    font-size: 1rem;
    color: #F4A623;
    font-weight: 700;
}

.perfil-ciudad {
    font-size: 0.9rem;
    color: #888;
}

.perfil-urgencia-badge {
    background: #FFF3E0;
    color: #7a4e00;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.perfil-col-der {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.perfil-seccion {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.perfil-seccion-titulo {
    font-size: 1.1rem;
    color: #1B3A5C;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F7F9FC;
}

.perfil-descripcion {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.8;
}

.perfil-cta-final {
    background: linear-gradient(135deg, #1B3A5C 0%, #2d5a8e 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.perfil-cta-final p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* =============================================
   ÚNETE
   ============================================= */

.unete-hero {
    background: linear-gradient(135deg, #1B3A5C 0%, #2d5a8e 100%);
    padding: 90px 20px 110px;
    text-align: center;
}

.unete-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unete-badge {
    display: inline-block;
    background: #F4A623;
    color: #1B3A5C;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.unete-hero h1 {
    font-family: Georgia, serif;
    font-size: 2.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.unete-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    line-height: 1.7;
}

.unete-beneficios {
    max-width: 1100px;
    margin: 70px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.unete-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.unete-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.unete-card:hover {
    transform: translateY(-5px);
}

.unete-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.unete-card h4 {
    color: #1B3A5C;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.unete-card p {
    color: #777;
    font-size: 0.92rem;
    line-height: 1.6;
}

.unete-cta {
    background: #F4A623;
    padding: 70px 20px;
    text-align: center;
}

.unete-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.unete-cta h2 {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #1B3A5C;
    margin-bottom: 15px;
    font-weight: 700;
}

.unete-cta p {
    color: rgba(27,58,92,0.8);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .home-hero h1 { font-size: 2rem; }
    .rubros-grid { grid-template-columns: repeat(2, 1fr); }
    .home-stats { flex-direction: column; gap: 20px; margin: -20px 20px 0; padding: 25px 20px; }
    .stat-divider { width: 50px; height: 1px; }
    .home-pasos { flex-direction: column; align-items: center; }
    .home-paso-flecha { transform: rotate(90deg); }
    .unete-grid { grid-template-columns: 1fr; }
    .perfil-col-izq { width: 100%; position: static; }
    .rubro-filtros-form { flex-direction: column; }
    .btn-filtrar { width: 100%; }
    .unete-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .rubros-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}

.btn-clasificados-nav {
    background: #f97316;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-clasificados-nav:hover {
    opacity: 0.85;
}

.footer-ig {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-ig:hover {
    color: #F4A623;
}