/* =================== CSS PARA LANDING PAGES =================== */
/* Estilos específicos para /marcas/, /segmentos/ y /venta-mayorista/ */

/* =================== CORRECCIONES DE HEADER =================== */
/* El header original del sitio es fixed, aseguramos que no se corte el logo */

/* Espacio superior para header fijo */
body {
    padding-top: 130px !important;
}

header {
    min-height: 110px !important;
    height: auto !important;
    padding: 27px 0 !important;
}

header .container {
    padding: 0 1rem !important;
    height: auto !important;
    min-height: 64px !important;
}

header nav {
    height: auto !important;
    min-height: 64px !important;
}

header .logo img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 4px 0 !important;
}

/* =================== LAYOUT GENERAL =================== */
.page-header {
    text-align: center;
    margin: 2rem auto 3rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1200px;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #003366;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-header .lead {
    font-size: 1.25rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* =================== BREADCRUMBS =================== */
.breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: #004488;
}

.breadcrumbs span {
    color: #999;
    font-weight: 600;
}

/* =================== GRIDS DE MARCAS Y SEGMENTOS =================== */
.marcas-grid,
.segmentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem;
    margin: 3rem 0;
    max-width: 100%;
}

/* Asegurar 2 columnas en desktop */
@media (min-width: 769px) {
    .marcas-grid,
    .segmentos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1 columna en móvil */
@media (max-width: 768px) {
    .marcas-grid,
    .segmentos-grid {
        grid-template-columns: 1fr !important;
    }
}

.marca-card,
.segmento-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.marca-card:hover,
.segmento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,51,102,0.15);
    border-color: #003366;
}

.marca-logo,
.segmento-icono {
    text-align: center;
    margin-bottom: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-logo img,
.segmento-icono img {
    max-width: 180px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.marca-card h2,
.segmento-card h2 {
    font-size: 1.6rem;
    color: #003366;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.marca-card h2 a,
.segmento-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.marca-card h2 a:hover,
.segmento-card h2 a:hover {
    color: #004488;
}

.marca-card p,
.segmento-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* =================== SPECS LIST =================== */
.specs-list,
.aplicaciones-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.specs-list li,
.aplicaciones-list li {
    padding: 0.6rem 0;
    color: #555;
    font-size: 0.95rem;
}

.specs-list li::before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* =================== BOTONES =================== */
.btn-primary,
.btn-secondary,
.btn-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,51,102,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004488 0%, #0055aa 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,51,102,0.3);
}

.btn-secondary {
    background: white;
    color: #003366;
    border: 2px solid #003366;
}

.btn-secondary:hover {
    background: #003366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,51,102,0.2);
}

.btn-cta {
    background: linear-gradient(135deg, #28a745 0%, #20893a 100%);
    color: white;
    font-size: 1.15rem;
    padding: 1.125rem 2.5rem;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #20893a 0%, #1e7e34 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(40,167,69,0.4);
}

/* =================== LANDING DE MARCA INDIVIDUAL =================== */
.marca-landing,
.segmento-landing,
.venta-mayorista-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.marca-header,
.segmento-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
}

.marca-logo-large {
    max-width: 280px;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
}

.marca-header h1,
.segmento-header h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.marca-header .lead,
.segmento-header .lead {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
}

.marca-descripcion,
.segmento-descripcion {
    margin: 4rem 0;
}

.marca-descripcion h2,
.segmento-descripcion h2 {
    color: #003366;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.caracteristicas-grid,
.condiciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.caracteristica,
.condicion {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #003366;
    transition: all 0.3s ease;
}

.caracteristica:hover,
.condicion:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.caracteristica h3,
.condicion h3 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.caracteristica p,
.condicion p {
    color: #555;
    line-height: 1.7;
    font-size: 0.975rem;
}

/* =================== TABLAS =================== */
.tabla-modelos,
.tabla-aplicaciones {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.tabla-modelos th,
.tabla-aplicaciones th {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: white;
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabla-modelos td,
.tabla-aplicaciones td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e8e8e8;
    color: #555;
}

.tabla-modelos tbody tr:hover,
.tabla-aplicaciones tbody tr:hover {
    background: #f8f9fa;
}

.tabla-modelos strong {
    color: #003366;
    font-weight: 700;
}

.nota-precios,
.nota-tecnica {
    background: #fff3cd;
    padding: 1.25rem 1.5rem;
    border-left: 5px solid #ffc107;
    margin: 2rem 0;
    border-radius: 6px;
    color: #856404;
}

.nota-precios strong,
.nota-tecnica strong {
    color: #856404;
}

/* =================== ARTÍCULOS RELACIONADOS =================== */
.articulos-relacionados {
    margin: 5rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.articulos-relacionados h2 {
    color: #003366;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.articulos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.articulo-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.articulo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.articulo-card h3 a {
    color: #003366;
    text-decoration: none;
}

.articulo-card h3 a:hover {
    color: #004488;
}

.articulo-card p {
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.975rem;
}

.leer-mas {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.leer-mas:hover {
    color: #004488;
    text-decoration: underline;
}

.articulos-list {
    list-style: none;
    padding: 0;
}

.articulos-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.articulos-list li:last-child {
    border-bottom: none;
}

.articulos-list a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.articulos-list a:hover {
    color: #004488;
    text-decoration: underline;
}

/* =================== APLICACIONES =================== */
.aplicaciones {
    margin: 4rem 0;
}

.aplicaciones h2 {
    color: #003366;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

/* =================== CTA MAYORISTA =================== */
.cta-mayorista {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 5rem 0;
    box-shadow: 0 8px 24px rgba(0,51,102,0.25);
}

.cta-mayorista h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-mayorista p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.contacto-rapido {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.25);
}

.contacto-rapido p {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.contacto-rapido a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.contacto-rapido a:hover {
    opacity: 0.9;
}

/* =================== VENTA MAYORISTA =================== */
.marcas-comercial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.marca-comercial {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.marca-comercial:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.marca-comercial h3 {
    margin: 1.5rem 0 1rem 0;
    color: #003366;
    font-size: 1.3rem;
}

.marca-comercial img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.pasos-alta {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    margin: 3rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pasos-alta li {
    margin: 1.25rem 0;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #555;
}

.pasos-alta strong {
    color: #003366;
    font-weight: 700;
}

.contacto-mayorista-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.contacto-directo,
.formulario-contacto {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contacto-directo h3,
.formulario-contacto h3 {
    color: #003366;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.formulario-contacto form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.formulario-contacto input,
.formulario-contacto select,
.formulario-contacto textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.formulario-contacto input:focus,
.formulario-contacto select:focus,
.formulario-contacto textarea:focus {
    outline: none;
    border-color: #003366;
}

.formulario-contacto textarea {
    resize: vertical;
    min-height: 120px;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1.05rem;
    }

    .page-header {
        padding: 2rem 1.5rem;
    }

    .marcas-grid,
    .segmentos-grid,
    .caracteristicas-grid,
    .condiciones-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta {
        width: 100%;
    }

    .tabla-modelos,
    .tabla-aplicaciones {
        font-size: 0.85rem;
    }

    .tabla-modelos th,
    .tabla-modelos td,
    .tabla-aplicaciones th,
    .tabla-aplicaciones td {
        padding: 0.75rem 0.5rem;
    }

    .cta-mayorista {
        padding: 2.5rem 1.5rem;
    }

    .cta-mayorista h2 {
        font-size: 1.75rem;
    }

    .articulos-cards,
    .contacto-mayorista-grid {
        grid-template-columns: 1fr;
    }
}
