/**
 * ALPACA LINK - PRODUCTOS PAGE SPECIFIC STYLES
 * Diseño limpio: Sin degradados, bordes sólidos, colores planos
 * Paleta: Rojo (#BF1120), Gris (#595646), Blanco, Negro (contraste)
 */

/* ========== HERO SECTION ========== */
.productos-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    background: var(--color-secondary);
    overflow: hidden;
}

.productos-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-secondary);
    z-index: 0;
}

.productos-hero .hero-background .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.productos-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.productos-hero .hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.productos-hero .hero-pretitle {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-white);
}

.productos-hero h1 {
    color: var(--color-white);
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-size: 3rem;
}

.productos-hero .hero-highlight {
    color: var(--color-primary);
    font-weight: 800;
}

.productos-hero .hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.productos-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.productos-hero .stat-item {
    text-align: center;
}

.productos-hero .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.productos-hero .stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    font-weight: 600;
}

/* ========== MAIN LAYOUT ========== */
.productos-layout {
    padding: var(--spacing-xl) 0;
    background: #f8f8f8;
}

.productos-layout .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.productos-content {
    width: 100%;
}

/* ========== SIDEBAR NAVIGATION ========== */
.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    background: var(--color-white);
    border: 3px solid #e5e5e5;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav h3 {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #e5e5e5;
}

.sidebar-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav > ul > li {
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-nav > ul > li:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: block;
    padding: 15px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #f8f8f8;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.sub-menu {
    list-style: none;
    padding: 0 0 10px 40px;
    margin: 0;
    display: none;
}

.sidebar-link.active + .sub-menu {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-menu a:hover {
    color: var(--color-primary);
    padding-left: 20px;
}

.sidebar-toggle,
.sidebar-close {
    display: none;
}

/* ========== PRODUCT SECTIONS ========== */
.product-section {
    background: var(--color-white);
    border: 3px solid #e5e5e5;
    padding: 50px;
    margin-bottom: 40px;
}

.product-section h2,
.product-section .section-title {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 5px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-section .section-description {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
    color: #8C3730;
}

/* Product Detail */
.product-detail {
    margin-bottom: 40px;
    border: 3px solid #e5e5e5;
    background: #f8f8f8;
}

.product-detail .product-header {
    background: var(--color-secondary);
    padding: 20px 30px;
    border-bottom: 3px solid var(--color-primary);
}

.product-detail .product-header h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Grid */
.product-detail .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

.product-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image-col > img {
    max-width: 100%;
    height: auto;
    border: 3px solid #e5e5e5;
    padding: 20px;
    background: var(--color-white);
}

.producto-imagen {
    width: 100%;
    background: var(--color-white);
    border: 3px solid #e5e5e5;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.producto-imagen img {
    max-width: 100%;
    height: auto;
}

.image-caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--color-text-light);
    text-align: center;
}

.product-info-col h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.mt-2 {
    margin-top: 30px;
}

/* ========== PRODUCT TABS ========== */
.product-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: var(--color-white);
    border: 3px solid #e5e5e5;
    color: var(--color-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== PRODUCT DETAILS ========== */
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image-section {
    background: #f8f8f8;
    border: 3px solid #e5e5e5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-image-section img {
    max-width: 100%;
    height: auto;
    border: 3px solid #e5e5e5;
}

.image-caption {
    margin-top: 20px;
    color: #8C3730;
    font-style: italic;
    text-align: center;
    font-size: 0.9rem;
}

.product-specs-section h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-grid {
    display: grid;
    gap: 20px;
}

.spec-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border: 2px solid #e5e5e5;
}

.spec-label {
    font-weight: 700;
    color: var(--color-secondary);
}

.spec-value {
    color: var(--color-text);
}

.product-specs-section h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.properties-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.properties-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
}

.properties-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ========== FULL PRODUCT DETAILS ========== */
.product-details-full {
    margin-top: 40px;
    border-top: 3px solid #e5e5e5;
    padding-top: 40px;
}

.detail-section {
    margin-bottom: 35px;
}

.detail-section h4 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 3px solid #e5e5e5;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
}

.detail-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.availability-item {
    background: #f8f8f8;
    padding: 15px;
    border: 2px solid #e5e5e5;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

.availability-label {
    font-weight: 700;
    color: var(--color-secondary);
}

.availability-value {
    color: #8C3730;
    font-weight: 600;
}

/* Detail Section */
.detail-section {
    margin-bottom: 35px;
}

.detail-section h4 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 3px solid #e5e5e5;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
}

.detail-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ========== MANUFACTURA SECTION ========== */
.manufactura-intro {
    background: #f8f8f8;
    padding: 30px;
    border: 3px solid #e5e5e5;
    margin-bottom: 40px;
    border-left: 5px solid var(--color-primary);
}

.manufactura-intro h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.manufactura-intro p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.manufactura-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.manufactura-card {
    background: var(--color-white);
    border: 3px solid #e5e5e5;
    padding: 0;
    transition: all 0.3s ease;
}

.manufactura-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.manufactura-card .producto-imagen {
    background: #f8f8f8;
    border-bottom: 3px solid #e5e5e5;
    padding: 30px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manufactura-card .producto-imagen img {
    max-width: 100%;
    height: auto;
}

.manufactura-card h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    padding: 20px;
    margin: 0;
    background: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e5e5;
}

.manufactura-card ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.manufactura-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
}

.manufactura-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.manufactura-card .capacities-box {
    background: #f8f8f8;
    padding: 15px 20px;
    margin: 20px;
    border: 2px solid #e5e5e5;
}

.manufactura-card .capacities-box small {
    color: var(--color-text);
    line-height: 1.8;
}

.manufactura-card .capacities-box strong {
    color: var(--color-secondary);
}

/* ========== PROCESS SECTION ========== */
.process-section {
    background: #f8f8f8;
    padding: 40px;
    border: 3px solid #e5e5e5;
    margin-top: 40px;
}

.process-section h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
    border: 4px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.step-description {
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.6;
}

.process-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 3px solid #e5e5e5;
}

.process-details ol {
    padding-left: 20px;
    color: var(--color-text);
}

.process-details li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.process-details strong {
    color: var(--color-secondary);
}

/* ========== CAPABILITIES SECTION ========== */
.capabilities-section {
    background: var(--color-white);
    padding: 40px;
    border: 3px solid #e5e5e5;
    margin-top: 40px;
}

.capabilities-section h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 35px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    padding-bottom: 20px;
    border-bottom: 5px solid var(--color-primary);
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.capabilities-section h5 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--color-text);
    line-height: 1.8;
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========== REQUIREMENTS SECTION ========== */
.requirements-section {
    background: #f8f8f8;
    padding: 40px;
    border: 3px solid #e5e5e5;
    margin-top: 40px;
}

.requirements-section h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 35px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.requirement-box {
    background: var(--color-white);
    padding: 20px;
    border: 3px solid #e5e5e5;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
}

.requirement-label {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1rem;
}

.requirement-value {
    color: #8C3730;
    font-weight: 600;
}

/* ========== COMPARISON TABLE ========== */
.table-responsive,
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.comparison-table thead {
    background: var(--color-secondary);
    color: var(--color-white);
}

.comparison-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid #e5e5e5;
}

.comparison-table td {
    padding: 15px;
    border: 2px solid #e5e5e5;
    color: var(--color-text);
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

.comparison-table tbody tr:hover {
    background: rgba(191, 17, 32, 0.05);
}

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--color-secondary);
}

/* ========== CTA SECTION ========== */
.product-cta {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 50px;
    text-align: center;
    border: 5px solid #8C3730;
    margin-top: 40px;
}

.product-cta h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-white);
}

.product-cta .btn {
    background: var(--color-white);
    color: var(--color-primary);
    border: 3px solid var(--color-white);
    padding: 15px 40px;
    font-weight: 700;
}

.product-cta .btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .productos-layout .container {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .manufactura-grid {
        grid-template-columns: 1fr;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .productos-hero {
        min-height: 40vh;
    }

    .productos-hero h1 {
        font-size: 2rem;
    }

    .productos-hero .hero-description {
        font-size: 1rem;
    }

    .productos-hero .hero-stats {
        gap: 30px;
    }

    .productos-hero .stat-number {
        font-size: 2rem;
    }

    .productos-hero .stat-label {
        font-size: 0.85rem;
    }

    .product-detail .product-grid {
        grid-template-columns: 1fr;
    }

    .product-section {
        padding: 30px 20px;
    }

    .product-section h2 {
        font-size: 1.5rem;
    }

    .product-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .spec-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .availability-grid {
        grid-template-columns: 1fr;
    }

    .availability-item {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .product-cta {
        padding: 35px 25px;
    }

    .product-cta h3 {
        font-size: 1.5rem;
    }
}
