/* ============================================================
   MATAMOROS 360 - ESTILOS UNIFICADOS
   Variables, páginas de sector (industrial/comercial) y noticias
   ============================================================ */

/* --- VARIABLES BASADAS EN TU LOGO --- */
:root {
    --navy-blue: #0A1D37;   /* Del texto MATAMOROS */
    --logo-green: #67B023;  /* Del arco y flecha del logo */
    --light-green: #A4D037; /* El verde claro del degradado */
    --white: #ffffff;
    --gray-bg: #f4f7f6;
    --text-main: #333333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--gray-bg);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

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

.relative {
    position: relative;
    z-index: 2;
}

/* --- NAVBAR MODERNA --- */
.navbar {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container .main-logo {
    height: 80px; /* Tamano ideal para que el logo se vea claro */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.nav-links a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--logo-green);
}

.nav-links a.active {
    color: var(--logo-green);
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: var(--logo-green);
    border-radius: 2px;
}

.btn-cta {
    background: var(--navy-blue);
    color: white !important;
    padding: 12px 24px;
    border-radius: 5px;
    border: 2px solid var(--navy-blue);
}

.btn-cta:hover {
    background: transparent !important;
    color: var(--navy-blue) !important;
}

/* --- CONFIGURACION DEL HERO INDUSTRIAL --- */
.hero {
    position: relative;
    height: 85vh; /* Altura generosa para impacto visual */
    min-height: 500px;
    /* Imagen de industria moderna (puedes cambiar esta URL por tu foto local) */
    background-image: url('panel.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

/* El truco del color: Superposicion Azul Marino con transparencia */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente que va del azul solido a uno mas transparente para ver la industria */
    background: linear-gradient(90deg,
                rgba(10, 29, 55, 0.9) 0%,
                rgba(10, 29, 55, 0.7) 50%,
                rgba(10, 29, 55, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Por encima del overlay */
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Tamano fluido */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* El color naranja de acento que te gusto para resaltar */
.highlight {
    color: #FF7F00; /* Naranja vibrante para impacto */
    display: block;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* BUSCADOR ESTILO OEMNEX */
.search-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.btn-search {
    background: #FF7F00;
    color: white;
    border: none;
    padding: 0 40px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
    border-radius: 2px;
}

.btn-search:hover {
    background: #e67200;
}

.badge {
    background: var(--logo-green);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* --- GRID DE CATEGORIAS --- */
.services-grid {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy-blue);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--logo-green);
    margin: 15px auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
}

.icon-blue { background: rgba(10, 29, 55, 0.1); color: var(--navy-blue); }
.icon-green { background: rgba(103, 176, 35, 0.1); color: var(--logo-green); }
.icon-dark { background: #333; color: white; }

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--navy-blue);
}

.link-arrow {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--logo-green);
    font-weight: 700;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--navy-blue);
    color: white;
    padding: 60px 0 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Convierte el logo a blanco para el fondo oscuro */
}

/* ============================================================
   PAGINAS DE SECTOR (Industrial / Comercial)
   ============================================================ */

.page-hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.industrial-bg { background-image: url('images/industrial4.png'); }
.comercial-bg { background-image: url('images/comercial.jpg'); }

.page-hero h1 { font-size: 3rem; margin-bottom: 10px; }
.page-hero h1 span { color: var(--logo-green); }

/* Barra de Filtros */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    margin-top: -40px; /* Sube la barra para que flote sobre el hero */
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.filter-bar input { flex: 2; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.filter-bar select { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }

/* Grid de Directorio */
.directory-section { padding: 80px 0; }

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Tarjetas de Proveedores */
.vendor-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.vendor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Estilo PLAN FULL */
.plan-full {
    border: 2px solid var(--navy-blue);
    box-shadow: 0 15px 35px rgba(10, 29, 55, 0.1);
}

.plan-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--navy-blue);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.plan-tag.commercial { background: var(--logo-green); }

.vendor-header { display: flex; gap: 20px; margin-bottom: 20px; align-items: center; }
.vendor-header img { width: 65px; height: 65px; border-radius: 8px; object-fit: cover; }

.category-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-blue);
    background: rgba(10, 29, 55, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.category-tag.comm {
    color: var(--logo-green);
    background: rgba(103, 176, 35, 0.12);
}

.vendor-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botones */
.btn-view {
    background: var(--navy-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--logo-green);
}

.btn-view.comm-btn { background: var(--logo-green); }
.btn-view.comm-btn:hover { background: var(--navy-blue); }

.btn-view.secondary {
    background: transparent;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
}

.btn-view.secondary:hover {
    background: var(--navy-blue);
    color: white;
}

.btn-simple {
    background: transparent;
    border: 2px solid #ddd;
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-simple:hover {
    border-color: var(--logo-green);
    color: var(--logo-green);
}

/* Estilo Basico */
.plan-basic { opacity: 0.8; }
.plan-basic h3 { font-size: 1.1rem; }

/* ============================================================
   PAGINA DE NOTICIAS
   ============================================================ */

.news-bg {
    background-image: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=1000');
}

.news-container {
    padding: 80px 0;
    background: var(--gray-bg);
}

.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border-top: 4px solid var(--logo-green);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.news-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.source-tag.src-expreso {
    background: rgba(255, 127, 0, 0.12);
    color: #c25e00;
}

.source-tag.src-mundo {
    background: rgba(201, 6, 6, 0.1);
    color: #C90606;
}

.source-tag.src-hoy {
    background: rgba(103, 176, 35, 0.12);
    color: var(--logo-green);
}

.source-tag.src-google {
    background: rgba(10, 29, 55, 0.1);
    color: var(--navy-blue);
}

.news-date {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-blue);
}

.source-tag {
    background: rgba(103, 176, 35, 0.12);
    color: var(--logo-green);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-body h3 {
    color: var(--navy-blue);
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-body p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    margin-top: auto;
    text-decoration: none;
    color: var(--logo-green);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--navy-blue);
    gap: 12px;
}

/* ============================================================
   PAGINA DE EMPLEOS (Bolsa de Trabajo)
   ============================================================ */

.jobs-bg {
    background-image: url('https://images.unsplash.com/photo-1521791136364-798a730bb361?q=80&w=1000');
}

.jobs-section {
    padding: 80px 0;
}

.jobs-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Columna de empleos local es más ancha */
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.section-subtitle {
    margin-bottom: 25px;
    color: var(--navy-blue);
    font-size: 1.5rem;
}

.btn-post {
    display: inline-block;
    margin-top: 20px;
    background: var(--logo-green);
    color: white;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-post:hover {
    background: var(--navy-blue);
}

/* Tarjeta Local */
.job-card-premium {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
    border-left: 5px solid var(--logo-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.job-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.job-sector {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(10, 29, 55, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--navy-blue);
}

.job-info h3 { margin: 10px 0 5px; color: var(--navy-blue); }
.company-name { color: var(--logo-green); font-weight: 600; margin-bottom: 10px; }
.job-meta { font-size: 13px; color: #777; display: flex; gap: 15px; flex-wrap: wrap; }

.btn-apply {
    background: var(--navy-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--logo-green);
}

/* Tarjeta Lateral de Google */
.google-jobs-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.google-jobs-card h3 { margin: 15px 0; }

.btn-google {
    display: block;
    background: #4285F4; /* Azul de Google */
    color: white;
    padding: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-google:hover {
    background: #357ae8;
}

/* Formulario de Alta */
.post-job-teaser {
    background: var(--navy-blue);
    color: white;
    padding: 30px;
    border-radius: 12px;
}

.post-job-teaser h4 { margin-bottom: 10px; }

.simple-form input, .simple-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: none;
}

.btn-submit-job {
    width: 100%;
    padding: 12px;
    background: var(--logo-green);
    color: white;
    border: none;
    font-weight: 800;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-submit-job:hover {
    background: var(--light-green);
}

.success-msg {
    background: rgba(103, 176, 35, 0.15);
    color: var(--light-green);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid var(--logo-green);
}

/* ============================================================
   PAGINA DE PERFIL DE EMPRESA
   ============================================================ */

.profile-header {
    padding: 100px 0 60px;
    color: white;
    position: relative;
    text-align: left;
    background-size: cover;
    background-position: center;
}

.profile-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-logo-big {
    background: white;
    padding: 10px;
    border-radius: 12px;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.profile-logo-big img {
    max-width: 100%;
    border-radius: 8px;
}

.badge-premium {
    background: #ffd700;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.profile-title-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 5px;
}

.profile-title-info p {
    opacity: 0.9;
    margin-bottom: 8px;
}

.profile-quick-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 0.9rem;
}

.profile-quick-stats span {
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
}

.profile-body {
    padding-bottom: 60px;
}

.profile-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: -40px; /* Sube un poco el contenido sobre el hero */
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.profile-card, .contact-card, .map-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.profile-card h2, .map-card h3 {
    color: var(--navy-blue);
    margin-bottom: 15px;
}

/* Sidebar */
.btn-whatsapp {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.info-item i {
    color: var(--navy-blue);
    margin-top: 5px;
}

.info-item p {
    color: #666;
}

.info-item a {
    color: var(--logo-green);
    text-decoration: none;
}

/* Galería */
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.profile-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.gallery-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.gallery-link {
    font-size: 0.8rem;
    color: var(--logo-green);
    font-weight: 600;
    text-decoration: none;
}

.gallery-link:hover {
    text-decoration: underline;
}

.gallery-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2px;
}

.gallery-link-url {
    color: var(--navy-blue);
}

.gallery-link-url i {
    color: var(--logo-green);
}

.services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.services-list li {
    padding: 8px 0;
}

.services-list i {
    color: var(--logo-green);
    margin-right: 8px;
}

/* Mapa y compartir */
.location-text {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.social-share {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-buttons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 29, 55, 0.08);
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.share-buttons a:hover {
    background: var(--navy-blue);
    color: white;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .search-container { flex-direction: column; }
    .nav-links { display: none; }

    .page-hero { padding: 60px 0; }
    .page-hero h1 { font-size: 2rem; }

    .filter-bar {
        flex-direction: column;
        margin-top: -30px;
    }
    .filter-bar select { flex: none; }

    .vendor-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-grid-modern {
        grid-template-columns: 1fr;
    }

    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .job-card-premium {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-header { padding: 60px 0 40px; }
    .profile-grid-layout {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .profile-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .services-list {
        grid-template-columns: 1fr;
    }
}
