/* Reset completo y estilos base */
html,
body {
    font-family: "Roboto Slab", sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../img-pagina/abstract-surface-textures-white-concrete-stone-wall.jpg);    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Variables */
:root {
    --primary: #a66dd4;
    --secondary: #364f6b;
    --white: #ffffff;
    --black: #333333;
    --gray: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Carrusel */
.swiper {
    width: 100%;
    height: 520px;
    margin-top: 80px;
    border-radius: 0;
    box-shadow: none;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.slide-content i {
    font-size: 40px;
    margin-bottom: 10px;
    color: yellow;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.swiper-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* Sections */
.section {
    padding: 40px 5%;
    margin: 20px 0;
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 70px;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.section p {
    text-align: justify;
    line-height: 1.6;
    color: #333;
}

.texto2 {
    font-size: 1.2rem;
    color: #21caf5;
    text-align: center;
    margin-top: 20px;
}

/* Product Sección */
.product-section {
    padding: 60px 5%;
    background-color: #fff9f5;
    text-align: center;
    width: 100%;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    color: #a67c52;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-family: "Poppins", sans-serif;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}

.product-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1;
    font-weight: bold;
}

.badge-recommended {
    background: #52a6a6;
}

.badge-offer {
    background: #cd1d06;
}

.badge-new {
    background: #05ac4b;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-name {
    font-family: "Montserrat", sans-serif;
    color: #333;
    margin: 15px 0 5px;
    font-size: 1.2rem;
}

.product-desc {
    color: #777;
    padding: 0 15px;
    font-size: 0.9rem;
    min-height: 40px;
}

.product-price {
    font-weight: bold;
    color: #d14d8b;
    font-size: 1.3rem;
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

/* Botones de acción */
.product-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 20px;
    gap: 10px;
}

.add-to-cart,
.view-details {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s;
}

.add-to-cart {
    background: #d14d8b;
    color: white;
}

.add-to-cart:hover {
    background: #8c6845;
}

.view-details {
    background: #f0e6dc;
    color: #d14d8b;
}

.view-details:hover {
    background: #e0d0c0;
}

.view-all-container {
    margin-top: 40px;
}

.view-all-btn {
    color: #d14d8b;
    border: 3px solid #1b1b1a;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: #fff;
    color: #d14d8b;
}

/* Modal de Detalles del Producto */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}


.modal-title {
    font-family: "Montserrat", sans-serif;
    color: #a67c52;
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #d14d8b;
    background-color: #f0e6dc;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-img-container {
    width: 100%;
    padding: 30px;
    background-color: #f9f5f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-img {
    width: 100%;
    max-width: 280px;
    height: 280px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.modal-info {
    padding: 25px;
}

/* TÍTULO DEL PRODUCTO - Exactamente como la referencia */
.modal-info h3 {
    font-family: "Montserrat", sans-serif;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* PRECIO - Exactamente como la referencia */
.modal-price {
    font-weight: bold;
    color: #d14d8b;
    font-size: 1.5rem;
    margin: 15px 0;
    font-family: "Montserrat", sans-serif;
}

/* DESCRIPCIÓN - Exactamente como la referencia */
.modal-description {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* SECCIÓN DE BENEFICIOS - Exactamente como la referencia */
.modal-features {
    margin-bottom: 20px;
}

.modal-features h4 {
    font-family: "Montserrat", sans-serif;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #05ac4b;
    font-weight: bold;
}

/* CONTROLES DE CANTIDAD - Exactamente como la referencia */
.quantity-controls {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background: #f0e6dc;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #d14d8b;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #e0d0c0;
}

.quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
}

/* BOTONES - Exactamente como la referencia */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #d14d8b;
    color: white;
}

.btn-primary:hover {
    background: #b83c76;
}

.btn-secondary {
    background: #f0e6dc;
    color: #d14d8b;
}

.btn-secondary:hover {
    background: #e0d0c0;
}

/* BADGE - Posición corregida para que esté cerca del título */
.modal-badge {
    position: absolute;
    top: 75px;
    right: 0px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.badge-new {
    background: #cd1d06;
}

.badge-offer {
    background: #05ac4b;
}

.badge-recommended {
    background: #52a6a6;
}

/* ============================================
   COMENTARIOS Y FOOTER
   ============================================ */

/* Deja tu comentario */
#comentarios table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid #21caf5;
}

#comentarios td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

#comentarios tr:hover {
    background-color: #f1f1f1;
}

#comentarios input,
#comentarios textarea,
#comentarios select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: pink;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: palevioletred;
}

/* Footer */
.euphoria-footer {
    background: linear-gradient(145deg, #a66dd4, #364f6b);
    color: white;
    padding: 1.5rem 5%;
    width: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.footer-logo {
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.footer-tagline {
    font-size: 0.85rem;
    margin-top: 0.3rem;
    color: #e5a15d;
    font-weight: 500;
}

/* Social Section */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: #e5a15d;
}

.social-icons {
    display: flex;
    gap: 0.9rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #e5a15d;
    overflow: hidden;
    padding: 2px;
}

.social-icon:hover {
    border-color: #e5a15d;
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.5);
    transform: scale(1.1) rotate(3deg);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.social-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    text-align: center;
}

/* Contact Section */
.footer-contact {
    min-width: 180px;
}

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

.contact-info li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #e5a15d;
    font-size: 0.9rem;
}

/* QR Section */
.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-container img {
    width: 80px;
    height: 80px;
    border: 2px solid #e5a15d;
    border-radius: 8px;
    padding: 3px;
    background: white;
    transition: transform 0.3s ease;
}

.qr-container img:hover {
    transform: scale(1.05);
}

.qr-text {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    text-align: center;
    color: #e5a15d;
}

/* Legal Section */
.footer-legal {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    width: 100%;
}

.footer-legal a {
    color: #e5a15d;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgb(49, 6, 65);
    text-decoration: underline;
}

/* ===== Manual de usuario ===== */

/* ===== BOTÓN FLOTANTE ===== */
button.btn-manual-flotante {
    position: fixed !important;
    bottom: 20px !important;
    right: 5px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #7b4ce2, #9b6bff) !important;
    color: #fff !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 15px rgba(123, 76, 226, 0.5) !important;
}

button.btn-manual-flotante:hover {
    transform: scale(1.13) !important;
    box-shadow: 0 10px 32px rgba(123, 76, 226, 0.7) !important;
}

button.btn-manual-flotante:active {
    transform: scale(0.95) !important;
}

/* ===== MODAL ===== */
.modal-xxl {
    max-width: 95vw !important;
}

.pdf-modal-content {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

/* ===== Header modal ===== */
.pdf-header {
    background: linear-gradient(90deg, #7b4ce2, #9b6bff) !important;
    color: #fff !important;
    border-bottom: none !important;
    padding: 14px 20px !important;
}

.pdf-header .modal-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff !important;
}

.pdf-body {
    height: 75vh !important;
    background: #2b2b2b !important;
    padding: 0 !important;
}

/* ===== Tamaño del modal ===== */
.pdf-frame {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

/* ===== BOTÓNES ===== */
.pdf-footer .btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 500;
    padding: 8px 18px;
}

.pdf-footer .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    font-weight: 500;
    padding: 8px 18px;
}

.pdf-footer .btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    color: #fff !important;
}

/* ===== Responsividad manual de usuario ===== */
@media (max-width: 768px) {
    /* Tablets y móviles grandes */
    button.btn-manual-flotante {
        bottom: 115px !important;
        right: 5px !important;
        width: 41px !important;
        height: 41px !important;
    }
}

@media (max-width: 480px) {
    button.btn-manual-flotante {
        bottom: 115px !important;
        right: 5px !important;
    }

    .pdf-body {
        height: 65vh !important;
    }
}

@media (max-width: 360px) {
    button.btn-manual-flotante {
        bottom: 115px !important;
        right: 5px !important;
    }
}