/* ============================================================
   VARIABLES GLOBALES (MODIFICAR AQUÍ para cambiar colores)
   ============================================================ */
:root {
    --primary: #0b2b4a;       /* Azul oscuro (seguridad) */
    --primary-light: #1a4b6d;
    --accent: #f0b429;        /* Amarillo / dorado */
    --accent-hover: #d49e1e;
    --text-dark: #1e1e1e;
    --text-light: #f5f5f5;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: 0.25s ease;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../assets/images/fondo.jpeg');
    background-size: cover;          
    background-position: center;     
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo i {
    color: var(--accent);
    font-size: 2rem;
}
.logo span {
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;        /* Ajusta la altura deseada */
    width: auto;         /* Mantiene la proporción */
    max-height: 50px;    /* Para que no crezca demasiado en móviles */
    object-fit: contain; /* Evita deformaciones */
    display: inline-block;
}

/* ============================================================
   TÍTULO
   ============================================================ */
.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin: 2rem 0 1.5rem;
    color: var(--bg-card);
    letter-spacing: 1px;
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.products-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    flex: 1;
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* ============================================================
   TARJETA DE PRODUCTO
   ============================================================ */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem 1rem 1.2rem;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.product-card .product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.product-card .product-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    font-weight: 600;
}

.product-card .product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.2rem 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    line-height: 1.3;
}

.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #b12704;
    margin: 0.2rem 0 0.4rem;
}
.product-card .product-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #777;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-card .product-rating {
    color: #f5a623;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.product-card .product-rating span {
    color: #666;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.product-card .product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-detail {
    background: var(--primary);
    color: white;
    flex: 1;
    justify-content: center;
}
.btn-detail:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}
.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: var(--text-dark);
}
.btn-outline:hover {
    background: #f0f0f0;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}
.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal {
    background: white;
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem 2rem 1.5rem;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    line-height: 1;
    z-index: 2;
}
.modal-close:hover {
    color: #111;
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.modal-gallery .main-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}
.modal-gallery .thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.modal-gallery .thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.modal-gallery .thumbnails img:hover {
    border-color: var(--accent);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.modal-info .brand {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
}
.modal-info h2 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}
.modal-info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #b12704;
}
.modal-info .price small {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
    text-decoration: line-through;
    margin-left: 0.5rem;
}
.modal-info .rating {
    color: #f5a623;
    font-size: 1.1rem;
}
.modal-info .rating span {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.3rem;
}
.modal-info .description {
    color: #333;
    line-height: 1.7;
    margin: 0.5rem 0;
}
.modal-info .specs {
    background: #f8f9fa;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1rem;
}
.modal-info .specs li {
    padding: 0.2rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.95rem;
}
.modal-info .specs li strong {
    color: var(--primary);
}

.modal-info .contact-btn {
    margin-top: 0.5rem;
    background: #25D366;              /* Verde oficial de WhatsApp */
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}
.modal-info .contact-btn:hover {
    background: #1ebe5b;
    transform: scale(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary);
    color: #ccc;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 3px solid var(--accent);
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
}
.footer a {
    color: var(--accent);
}
.footer a:hover {
    text-decoration: underline;
}
.footer-legal {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: center;
    }
    .logo {
        font-size: 1.6rem;
    }
    .page-title {
        font-size: 1.6rem;
        margin: 1.5rem 0 1rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    .modal {
        padding: 1.2rem;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .modal-gallery .main-img {
        height: 200px;
    }
    .modal-info .specs {
        grid-template-columns: 1fr;
    }
    .modal-info .contact-btn {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .product-card {
        padding: 0.8rem;
    }
    .product-card .product-img {
        height: 130px;
    }
    .product-card .product-title {
        font-size: 0.9rem;
        height: 2.2rem;
    }
    .product-card .product-price {
        font-size: 1.1rem;
    }
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    cursor: default;
    animation: fadeIn 0.25s ease;
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3.5rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 300;
    z-index: 2001;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.product-short-desc {
    font-size: 0.85rem;
    color: #555;
    margin: 0.2rem 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.4rem;
}

.short-desc-modal {
    background: #f0f4f8;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--accent);
    font-size: 0.95rem;
    color: #1e2a3a;
    margin: 0.2rem 0 0.5rem;
}

/* ============================================================
   ACORDEÓN INFORMATIVO
   ============================================================ */
.accordion-section {
    padding: 3rem 0;
    background: #fff;
}

.accordion-item {
    max-width: 900px;
    margin: 0 auto 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow var(--transition);
}
.accordion-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.accordion-header {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 1.1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    transition: background var(--transition);
    text-align: left;
    font-family: inherit;
}
.accordion-header:hover {
    background: #eef2f6;
}
.accordion-header span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.accordion-header span i {
    color: var(--accent);
    font-size: 1.1rem;
}
.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary-light);
    font-size: 0.95rem;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-item.active .accordion-header {
    background: var(--primary);
    color: #fff;
}
.accordion-item.active .accordion-header span i {
    color: var(--accent);
}
.accordion-item.active .accordion-icon {
    color: #fff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-inner {
    padding: 1.4rem 1.5rem;
    color: #333;
    line-height: 1.7;
    font-size: 0.98rem;
}

/* ---- Tarjetas dentro del acordeón "¿Qué ofrecemos?" ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.feature-card {
    background: var(--bg-body);
    padding: 1.3rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid #eee;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--accent);
}
.feature-card i {
    font-size: 1.9rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}
.feature-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

/* ---- Pasos dentro del acordeón "¿Cómo trabajamos?" ---- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.process-step {
    background: #fff;
    padding: 1.6rem 1rem 1.2rem;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform var(--transition);
}
.process-step:hover {
    transform: translateY(-4px);
}
.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 3px solid var(--accent);
}
.step-icon {
    font-size: 1.7rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    display: block;
}
.process-step h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.process-step p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ============================================================
   RESPONSIVE - Mismo look en móvil y escritorio
   ============================================================ */
@media (max-width: 768px) {
    .accordion-section {
        padding: 2rem 0;
    }
    .accordion-header {
        padding: 1rem 1.1rem;
        font-size: 0.98rem;
    }
    .accordion-inner {
        padding: 1.1rem 1.1rem;
        font-size: 0.94rem;
    }
    .features-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .feature-card {
        padding: 1rem 0.7rem;
    }
    .feature-card i {
        font-size: 1.6rem;
    }
    .feature-card h3 {
        font-size: 0.92rem;
    }
    .feature-card p {
        font-size: 0.82rem;
    }
    .process-step {
        padding: 1.4rem 0.7rem 1rem;
    }
    .process-step h3 {
        font-size: 0.92rem;
    }
    .process-step p {
        font-size: 0.8rem;
    }
    .step-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* En móviles muy pequeños mantenemos 2 columnas para que se vea igual */
    .features-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .feature-card p,
    .process-step p {
        font-size: 0.78rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
}   