/* ==============================================================
   FATECO PORTAL - ESTILOS PRODUCTO (Single Product Override)
   Vanilla CSS con Variables Premium e Interacciones Micro-dinámicas
   ============================================================== */

:root {
    --primary-blue: #1a2e44;
    --primary-orange: #f39204;
    --dark-footer: #111827;
    --white: #ffffff;
    --gray-bg: #f8fafc;
    --gray-light: #f3f4f6;
    --gray-text: #4b5563;
    --gray-border: #e2e8f0;
}

/* Reuse wrapper and header */

.fateco-product-detail-main {
    background-color: #f8fafc;
    padding-top: 40px;
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    .fateco-product-detail-main { padding-top: 56px; padding-bottom: 128px; }
}

.fateco-product-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.product-category-row {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 950;
    color: var(--primary-blue);
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0 0 16px 0;
}

@media (min-width: 640px) {
    .product-title { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
    .product-title { font-size: 4rem; }
}

/* Central Product Image Card */
.product-image-card {
    position: relative;
    width: 100%;
    max-width: 288px;
    margin: 0 auto 40px auto;
    border-radius: 2rem;
    border: 1px solid var(--gray-border);
    background-color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-image-card { max-width: 320px; padding: 20px; }
}

.product-image-card .card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 5/6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.7s;
}

.product-image-card:hover img {
    transform: scale(1.05);
}

/* Description paragraph */
.product-description-container {
    max-width: 768px;
    margin: 0 auto 80px auto;
}

.product-description-container p {
    font-size: 1.25rem;
    color: var(--primary-blue);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

/* Specifications Grid (3 Cards) */
.product-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 896px;
    margin: 0 auto 80px auto;
}

@media (min-width: 768px) {
    .product-specs-grid { grid-template-columns: repeat(3, 1fr); }
}

.spec-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: 2rem;
    border: 1px solid var(--gray-border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
}

.spec-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.spec-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

/* Downloads and Dropdowns Row */
.product-downloads-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 128px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .product-downloads-row { flex-direction: row; }
}

.download-btn {
    display: inline-flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 0;
    border-bottom-left-radius: 40px;
    border-top-right-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0 32px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.2s;
    width: 100%;
}

@media (min-width: 640px) {
    .download-btn { width: auto; }
}

.download-btn.blue-btn {
    background-color: #0ea5e9;
    color: var(--white);
}

.download-btn.blue-btn:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
}

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

.download-btn.dark-btn:hover {
    background-color: #0f1b29;
    transform: translateY(-2px);
}

/* Dropdown Menu styling */
.dropdown-wrapper {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .dropdown-wrapper { width: auto; }
}

.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    min-width: 240px;
}

.dropdown-menu-item {
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    text-align: left;
    transition: all 0.2s;
}

.dropdown-menu-item:hover {
    background-color: var(--gray-bg);
    color: var(--primary-blue);
}

/* --- Recommendations full-width Table --- */
.product-recommendations-section {
    background-color: var(--primary-blue);
    padding: 80px 24px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    .product-recommendations-section { padding: 128px 24px; }
}

.product-recommendations-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/Group-23-1-1536x1185.webp');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.04;
    mix-blend-mode: screen;
    pointer-events: none;
}

.recommendations-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.product-recommendations-section h2 {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--white);
    margin: 0 0 48px 0;
}

@media (min-width: 768px) {
    .product-recommendations-section h2 { font-size: 3rem; }
}

/* Generic & TablePress Overrides to fit nicely */
.recommendations-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Override standard tables and TablePress */
.recommendations-table-wrapper table,
.recommendations-table-wrapper .tablepress {
    width: 100% !important;
    border-collapse: collapse !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    margin: 0 !important;
    font-family: inherit !important;
    border: none !important;
}

.recommendations-table-wrapper th,
.recommendations-table-wrapper .tablepress th {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding: 24px 32px !important;
    border: none !important;
    text-align: left !important;
}

.recommendations-table-wrapper td,
.recommendations-table-wrapper .tablepress td {
    padding: 24px 32px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 1rem !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.recommendations-table-wrapper tr:hover td,
.recommendations-table-wrapper .tablepress tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.recommendations-table-wrapper .crop-col,
.recommendations-table-wrapper td:first-child {
    font-weight: 700 !important;
    color: var(--primary-orange) !important;
}

/* Fallback table styling (non TablePress) */
.fallback-table {
    width: 100%;
}

/* --- Contact / Technical Advice Form --- */
.product-info-form-section {
    background-color: #f8fafc;
    padding: 96px 24px;
    text-align: left;
}

.form-section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .form-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.form-info-left h2 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.15;
    margin: 0 0 24px 0;
}

@media (min-width: 1024px) {
    .form-info-left h2 { font-size: 3.25rem; }
}

.form-info-left p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 448px;
}

.form-box-right {
    background-color: var(--white);
    border-radius: 3rem;
    padding: 32px;
    border: 1px solid var(--gray-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .form-box-right { padding: 48px; }
}

.form-box-right form {
    display: grid;
    gap: 24px;
}

.form-field-row input,
.form-box-right textarea {
    width: 100%;
    height: 56px;
    background-color: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-box-right textarea {
    height: auto;
    padding: 16px;
    resize: none;
}

.form-field-row input:focus,
.form-box-right textarea:focus {
    border-color: var(--primary-orange);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(243, 146, 4, 0.1);
}

.form-field-row.flex-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-field-row.flex-row { flex-direction: row; }
}

.form-field-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-field-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--gray-border);
    cursor: pointer;
}

.form-field-checkbox label {
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
}

.form-submit-btn {
    margin-top: 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 0;
    border-bottom-left-radius: 102px;
    border-top-right-radius: 131px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.form-submit-btn:hover {
    background-color: #0f1b29;
    transform: translateY(-2px);
}

.form-feedback-msg {
    padding: 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.form-feedback-msg.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-feedback-msg.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Related Products Section --- */
.related-products-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--gray-border);
    padding: 96px 24px;
    text-align: center;
}

.related-products-container {
    max-width: 1280px;
    margin: 0 auto;
}

.related-products-section h2 {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin: 0 0 64px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 3rem;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s;
    text-align: left;
}

.related-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.card-img-box {
    height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
}

.card-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.related-card:hover .card-img-box img {
    transform: scale(1.08);
}

.related-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 12px 0 0 0;
}

.card-detail-link {
    margin-top: 32px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border-bottom-left-radius: 40px;
    border-top-right-radius: 50px;
    border: 2px solid var(--gray-border);
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
}

.related-card:hover .card-detail-link {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}
