/* ==========================================================================
   VARIABLES Y ESTILOS GLOBALES
   ========================================================================== */
:root {
    --primary-color: #0d5cad;
    --primary-hover: #094380;
    --secondary-color: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --font-main: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 168, 181, 0.2);
    box-shadow: 0 4px 12px -2px rgba(11, 19, 32, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem; /* Padding vertical a 0.5rem */
    min-height: 55px;         /* Altura mínima de 55px */
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.cursive-text, .footer-cursive {
    font-family: var(--font-cursive);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

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

.nav-links a {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.logo span {
    color: var(--primary-color); /* Aplica el color principal a "Brigel" */
} 

.logo strong {
    color: var(--primary-color); /* Aplica el mismo color a "CLEANING" */
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--primary-hover);
}

/* Menú Hamburguesa */
.menu-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background-image: url('../img/baner1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Empuja el contenido a la izquierda */
    text-align: left;
    color: var(--white);
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    max-width: 800px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 650px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 19, 32, 0.75), rgba(0, 168, 181, 0.35));
    z-index: 1;
}

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

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
    padding: 5rem 0;
}

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

.sub-title {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

/* GRID GENERAL / TARJETAS */
.grid-cards, .grid-services, .grid-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tarjeta Beneficio */
.card-benefit {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.card-benefit .icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tarjeta Servicio */
.card-service {
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-service ul {
    list-style: none;
    margin-top: 1rem;
}

.card-service li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* Preview Trabajos Estándar */
.preview-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.preview-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.preview-info {
    padding: 1rem;
    background: var(--white);
}

.center-btn {
    text-align: center;
    margin-top: 2.5rem;
}

/* Planes */
.plan-card {
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    position: relative;
    background: var(--white);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.badge-featured {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-features li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* Formulario Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

/* Forzar estado estático y visible para la tarjeta de correo */
.contact-card .btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    opacity: 1;
    visibility: visible;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    word-break: break-all;
}

.contact-card .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   GALERÍA DE TRABAJOS (CUADRÍCULA DE 4 COLUMNAS CON CARRUSELES)
   ========================================================================== */
.jobs-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 columnas exactas */
    gap: 15px;                                        /* Separación compacta entre cuadros */
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Tarjeta contenedora con esquinas levemente redondeadas y proporción cuadrada */
.jobs-grid .gallery-item {
    width: 100% !important;
    aspect-ratio: 1 / 1;                              /* Cuadrado perfecto (1:1) */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

/* Integración estricta de Swiper dentro de las tarjetas */
.jobs-grid .swiper {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

.jobs-grid .swiper-wrapper,
.jobs-grid .swiper-slide {
    height: 100% !important;
}

.jobs-grid .swiper-slide img,
.jobs-grid .swiper-slide video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;                                /* Cubre el área sin deformar */
    display: block;
}

/* Flechas circulares sobrepuestas en las fotos */
.jobs-grid .swiper-button-next,
.jobs-grid .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
    background-color: rgba(0, 0, 0, 0.4);            /* Círculo oscuro semitransparente */
    border-radius: 50%;
    color: #ffffff !important;
}

.jobs-grid .swiper-button-next::after,
.jobs-grid .swiper-button-prev::after {
    font-size: 14px !important;                       /* Tamaño del icono de la flecha */
    font-weight: bold;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 1100px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columnas en tablets */
    }
}

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

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1.5rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        display: none;
    }

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

    .hero h1 {
        font-size: 1.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .jobs-grid {
        grid-template-columns: 1fr !important; /* 1 columna en teléfonos */
    }
}