/* HIDROE - Estilos BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-navy: #003D6B;
    --color-blue: #0057A8;
    --color-green: #25D366;
    --color-yellow: #FFD700;
    --color-gray: #CCCCCC;
    --font-primary: 'Poppins', sans-serif;
    --border-radius: 12px;
}

body {
    font-family: var(--font-primary);
    background-color: #F5F5F5;
    padding: 20px;
    padding-bottom: 0px;
}

/* Paliativo P2.4: evita scroll horizontal por overflow residual (~24px en
   Sobre Nosotros). No corrige la causa raíz; documentar si aparece de nuevo. */
html, body {
    overflow-x: hidden;
}

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

/* ===== HEADER ===== */
.main-header {
    background-color: var(--color-navy);
    border-radius: var(--border-radius);
    padding: 20px 40px;
    margin-bottom: 20px;
}

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

.logo-img {
    height: 30px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
}

.btn-whatsapp {
    background-color: var(--color-green);
    color: white;
    padding: 10px 22px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp:hover {
    background-color: #1fa855;
}

.mobile-menu-toggle { display: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: var(--color-blue);
    border-radius: var(--border-radius);
    padding: 14px 40px;
    margin-bottom: 20px;
}

.breadcrumb-text {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* ===== TÍTULOS ===== */
.section-title {
    color: var(--color-blue);
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 12px;
}

.title-underline {
    width: 55px;
    height: 4px;
    background-color: var(--color-blue);
    margin-bottom: 35px;
}

/* ===== HERO HOME ===== */
.hero-section {
    margin-bottom: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-left {
    background-image: url('../images/tecnologiagestion.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    min-height: 380px;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.82), rgba(0,0,0,0.35));
    padding: 45px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--border-radius);
}

.hero-title {
    color: white;
    font-size: clamp(26px, 6vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero-subtitle {
    color: white;
    font-size: 14px;
    line-height: 1.6;
}

.product-card {
    background-color: var(--color-yellow);
    border-radius: var(--border-radius);
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-label {
    background-color: white;
    padding: 14px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 22px;
}

/* ===== MARCAS BANNER ===== */
.brands-banner {
    background-color: #999999;
    padding: 35px 0;
    margin: 60px 0;
    border-radius: 12px;
}

.brands-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.brands-label {
    font-size: 18px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    padding-right: 60px;
    border-right: 2px solid white;
}

.brands-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex: 1;
    padding-left: 60px;
}

.brands-logos img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ===== SHOWROOM ===== */
.showroom-section {
    margin-bottom: 20px;
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.showroom-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.showroom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-info {
    background-color: var(--color-blue);
    border-radius: var(--border-radius);
    padding: 45px;
    color: white;
}

.showroom-title {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 22px;
}

.showroom-details p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: #CCCCCC;
    border-radius: 12px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 25px 30px;
    padding-bottom: 40px;
    margin-top: 40px;
}

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

.footer-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.footer-links a {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 16px;
    border-right: 1px solid #999;
    display: inline-flex;
    align-items: center;
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:first-child {
    padding-left: 0;
}

.footer-links a:hover {
    color: #0057A8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #0057A8;
    transform: translateY(-2px);
}

/* ===== ACCESIBILIDAD - FOCO DE TECLADO (P3.2) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Enlaces/botones sobre fondo azul (header y panel del menú): foco blanco */
.main-header a:focus-visible,
.main-nav a:focus-visible,
.mobile-menu-toggle:focus-visible,
.btn-whatsapp:focus-visible {
    outline-color: #fff;
}

/* ===== HERO HOME - AJUSTES FINALES ===== */
.hero-grid {
    gap: 20px;
}

.hero-left {
    border-radius: 16px;
}

.hero-overlay {
    border-radius: 16px;
}

.product-card {
    border-radius: 16px;
    padding: 40px;
}

.product-label {
    background-color: white;
    padding: 16px 20px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    margin-top: 30px;
    color: #333;
}

/* ===== HERO HOME - GRID CORRECTO =====
   Última definición de .hero-grid (misma especificidad que las anteriores),
   gana por orden de cascada; no necesita !important. */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
