/* ==========================================
   ESTILOS GENERALES - BRÚJULA
   Header, Hero y Footer Oscuros (Antracita)
   Cuerpo Claro con Tarjetas y Formularios Enmarcados en Ámbar/Cobre
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9; /* Fondo claro continuo */
    color: #1a202c; /* Texto oscuro visible y nítido */
    line-height: 1.6;
}

/* HEADER OSCURO */
header {
    background-color: #0b0d0f;
    border-bottom: 2px solid #f39c12; /* Borde destacado en color ámbar */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.logo-area img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo-area h1 {
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: #f39c12; /* Ámbar / Cobre */
}

.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    background-color: #1a1e24;
    border: 1px solid #2c323b;
    border-radius: 4px 0 0 4px;
    color: #fff;
    outline: none;
}

.search-bar button {
    background-color: #f39c12;
    color: #121417;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background-color: #d68910;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f39c12;
}

.btn-register-nav {
    background-color: #f39c12;
    color: #121417 !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s !important;
}

.btn-register-nav:hover {
    background-color: #d68910;
}

/* HERO SECTION (OSCURO E IMPONENTE) */
.hero {
    background: linear-gradient(rgba(11, 13, 15, 0.9), rgba(11, 13, 15, 0.95));
    padding: 70px 20px;
    text-align: center;
    border-bottom: 3px solid #f39c12;
}

.hero h2 {
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero h2 span {
    color: #f39c12;
}

.hero p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.btn-cta {
    display: inline-block;
    background-color: #f39c12;
    color: #121417;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.btn-cta:hover {
    background-color: #d68910;
    transform: translateY(-2px);
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-title {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 30px;
    border-left: 5px solid #f39c12;
    padding-left: 12px;
}

/* TARJETAS ENMARCADAS CON MARGEN ATRACTIVO */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.category-card {
    background: linear-gradient(145deg, #ffffff, #edf1f7);
    border: 2px solid #e2e8f0;
    border-top: 4px solid #f39c12; /* Enmarcado superior atractivo */
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: #f39c12;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
}

.category-card img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.15rem;
    color: #1a202c;
    font-weight: 700;
}

/* FORMULARIO DE CONTACTO ENMARCADO */
.contact-section {
    padding: 50px 20px;
}

.contact-container {
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    border-left: 6px solid #f39c12; /* Marco lateral de color atractivo */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c; /* Texto oscuro y legible */
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    background-color: #f8fafc;
    color: #1a202c;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    background-color: #ffffff;
}

.btn-submit {
    background-color: #f39c12;
    color: #121417;
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #d68910;
    transform: translateY(-2px);
}

/* VENTANA MODAL DE REGISTRO (POR DEFECTO OCULTA) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.modal-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 750px;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    border: 2px solid #e2e8f0;
    border-top: 6px solid #f39c12;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    text-decoration: none;
    color: #a0aec0;
    font-weight: bold;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #e53e3e;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #f39c12;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
}

/* BOTÓN DE WHATSAPP FLOTANTE CON IMAGEN PROPIA */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.12);
}

/* FOOTER OSCURO ESTANDARIZADO */
footer {
    background-color: #0b0d0f;
    border-top: 2px solid #1f242b;
    padding: 35px 20px;
    color: #cccccc;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info h3 {
    color: #f39c12;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.footer-info p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #aaaaaa;
}

.footer-wa {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dotted #f39c12;
}

.footer-col-right {
    text-align: right;
}

.footer-col-right span {
    font-size: 0.8rem;
    color: #777777;
    display: block;
    margin-bottom: 4px;
}

.footer-col-right a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
}

.footer-col-right img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-col-right strong {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1050px) {
    .nav-container {
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px;
    }

    .logo-area {
        justify-content: center;
    }

    .search-bar {
        width: 100%;
        max-width: none;
    }

    .nav-links {
        gap: 6px 12px;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 6px;
    }

    .hero h2 {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* ESTILO UNIFICADO DEL BOTÓN DE RETORNO A CLEMAR WEB */
.btn-return-clemar {
    display: inline-block !important;
    background: transparent !important;
    border: 1px solid #f39c12 !important;
    color: #f39c12 !important;
    padding: 8px 14px !important;
    border-radius: 4px;
    font-size: 0.9rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-return-clemar:hover {
    background-color: #f39c12 !important;
    color: #121417 !important;
}

/* ==========================================
   SECCIÓN DE OFERTAS SEMANALES
   ========================================== */
.offers-section {
    padding: 20px 0 40px 0;
}

.section-subtitle {
    color: #4a5568;
    margin-top: -20px;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.offer-card {
    background: linear-gradient(145deg, #ffffff, #edf1f7);
    border: 2px solid #e2e8f0;
    border-top: 4px solid #f39c12;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.asset-placeholder {
    min-height: 100px;
    margin-bottom: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e0;
    border-radius: 6px;
    background: #edf1f7;
    color: #4a5568;
    font-size: 0.9rem;
    text-align: center;
}

.offer-card .asset-placeholder {
    min-height: 150px;
}

.alliance-badge-box .asset-placeholder {
    min-width: 180px;
}

.development-notice {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f39c12;
    border-radius: 6px;
    background: #f8fafc;
    color: #4a5568;
}

.development-notice a {
    display: inline-block;
    margin-top: 12px;
    color: #8a4b08;
    font-weight: 700;
}

/* ==========================================
   SECCIÓN ALIANZA ESTRATÉGICA ROSTEC
   ========================================== */
.alliance-section {
    padding: 20px 0 30px 0;
}

.alliance-card {
    background: linear-gradient(145deg, #ffffff, #edf1f7);
    border: 2px solid #cbd5e0;
    border-left: 6px solid #f39c12;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.alliance-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}