/* =========================================
   CAMEYA! - Premium Mobile-First CSS
   ========================================= */

:root {
    /* Color Palette (Nuevo Branding) */
    --primary: #F27236;      /* Naranja Corporativo */
    --primary-glow: rgba(242, 114, 54, 0.4);
    --secondary: #34B3E4;    /* Celeste Corporativo */
    --secondary-dark: #003B6F; /* Azul corporativo */
    --bg-main: #FFFFFF;      /* Blanco */
    --bg-card: #F8F9FA;      /* Gris muy claro para tarjetas */
    --text-main: #2D3748;    /* Gris muy oscuro para texto principal */
    --text-muted: #718096;
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.logo-text .highlight {
    color: var(--primary);
}

/* =========================================
   Layout & Utility
   ========================================= */
.container {
    padding: 1.5rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .container {
        padding: 2rem 4rem;
        max-width: 1200px;
    }
}

/* Gradients & Backgrounds */
.blob-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}
.blob-gradient.top-left {
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary);
}
.blob-gradient.bottom-right {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: #4A00E0;
}

/* =========================================
   Landing Page
   ========================================= */
.landing-page .landing-container {
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.landing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.role-selector {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.role-card:hover, .role-card:active {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(242, 114, 54, 0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.role-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.role-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Ads Configuration (Monetization)
   ========================================= */
.ad-banner-container {
    width: 100%;
    margin-top: auto; /* Push to bottom in flex containers */
    padding: 1rem 0;
}

.ad-placeholder {
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   App Shell Components (Worker/Employer views)
   ========================================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #FFD700;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 250px;
    background: #E2E8F0;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.map-placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

/* Job Cards */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.job-business {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-pay {
    background: rgba(0, 230, 118, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary { 
    background: transparent; 
    border: 1px solid var(--text-light); 
    color: var(--text-main); 
    font-weight: 600; 
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.btn-secondary:hover { background: #f0f0f0; }
.btn-white { background: white; border: 1px solid #ddd; color: #444; }
.btn-white:hover { background: #eee; }

/* Hamburger and Sidebar UI */
.hamburger-btn { display: none; background: none; border: none; font-size: 2rem; color: var(--primary); cursor: pointer; }
.sidebar-mobile { position: fixed; left: -250px; top: 0; width: 250px; height: 100%; background: white; box-shadow: 2px 0 5px rgba(0,0,0,0.2); transition: 0.3s; z-index: 1000; padding: 2rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-mobile.open { left: 0; }
.overlay-mobile { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999; }
.overlay-mobile.open { display: block; }
.sidebar-mobile a { color: var(--text-main); text-decoration: none; font-size: 1.1rem; font-weight: bold; padding: 0.5rem; border-radius: 4px; }
.sidebar-mobile a:hover { background: #f0f0f0; }

.header-dash { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: white; padding: 1rem 2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-left { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; }
.header-center { display: flex; justify-content: center; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.mobile-only-pic { display: none; }

/* Employer specific */
.quick-templates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.template-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.template-btn:hover {
    border-color: var(--primary);
    background: rgba(255,51,102,0.05);
}

.template-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* FAB for AR */
.fab-ar {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A00E0, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.4);
    cursor: pointer;
    z-index: 100;
    border: none;
    transition: var(--transition);
}

.fab-ar:active {
    transform: scale(0.9);
}

/* Animations */
.fade-in { animation: fadeIn 0.8s ease forwards; }
.slide-up { animation: slideUp 0.6s ease forwards; opacity: 0; transform: translateY(20px); }
.slide-up-delayed { animation: slideUp 0.6s ease 0.3s forwards; opacity: 0; transform: translateY(20px); }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Modals & Forms */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 1.2rem;
    cursor: pointer;
}

.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================================
   NUEVA LANDING PAGE (Refactor)
   ========================================= */

/* Navbar Fijo */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
}

.navbar-logo img {
    height: 40px;
}

.navbar-links {
    display: none;
    gap: 2rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .navbar-links { display: flex; }
}

.navbar-links a {
    color: var(--text-main);
    transition: color 0.3s;
}

.navbar-links a:hover {
    color: var(--primary);
}

/* Espaciador para el navbar fijo */
.pt-80 { padding-top: 80px; }

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../assets/img/hero-meseros.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 59, 111, 0.7); /* Azul oscuro corporativo con opacidad */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-buttons button {
    white-space: normal;
    height: auto;
    word-wrap: break-word;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero-buttons { flex-direction: row; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: auto; min-width: 200px; }
}

.btn-secondary.btn-white {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}

.btn-secondary.btn-white:hover {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
}

/* Ad Banner Horizontal */
.ad-banner-horizontal {
    background: #F8F9FA;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.ad-banner-horizontal img {
    height: 24px;
    opacity: 0.5;
}

/* Sections General */
.section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-dark);
    margin-bottom: 3rem;
}

/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
}

.testimonial-author-info h4 {
    color: var(--text-main);
    font-size: 1rem;
}

.testimonial-author-info p {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    color: #FFFFFF;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-col h4 { color: var(--primary); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-light); text-decoration: none; }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom { text-align: center; margin-top: 2rem; border-top: 1px solid #ddd; padding-top: 1rem; font-size: 0.9rem; color: #888; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-dash {
        padding: 1rem;
    }
    .hamburger-btn { display: block; }
    .header-profile-pic { display: none; } /* Hide left profile on mobile */
    .mobile-only-pic { display: block !important; } /* Show right profile on mobile */
    .navbar-links {
        display: none !important; /* Ocultar enlaces desktop */
    }
    .main-grid {
        grid-template-columns: 1fr; /* Stack sidebar on mobile */
    }
}
