/* Explain: Styles for product price display, including base prices and quote/availability notes. */
/* ---------- Buttons ---------- */
.btn-brand,
.btn-brand-outline,
.btn-brand-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-brand {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-brand:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-brand-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-brand-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-brand-light {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
}

.btn-brand-light:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-brand-sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
}

.btn-brand:disabled,
.btn-brand-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Card action buttons keep identical size and alignment on every product card */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.btn-card {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
}

/* ---------- Header / nav ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--primary-color);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.brand-mark::after {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #6dbf72;
    transform: rotate(45deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.brand-tag {
    margin-top: 3px;
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand-light .brand-mark {
    background: rgba(255, 255, 255, 0.14);
}

.brand-light .brand-name {
    color: #ffffff;
}

.brand-light .brand-tag {
    color: rgba(255, 255, 255, 0.6);
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-link {
    display: block;
    padding: 0.8rem 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-link:hover {
    color: var(--accent-color);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--surface-color);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-block;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    overflow-wrap: break-word;
}

.eyebrow-light {
    color: #9dc0ea;
}

.hero-title {
    margin-top: 1rem;
    font-size: clamp(1.7rem, 7.5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.section-title {
    margin-top: 0.85rem;
    font-size: clamp(1.8rem, 3.8vw, 2.75rem);
    line-height: 1.1;
    font-weight: 800;
}

.section-lead {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- Product cards ---------- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cdd9e8;
}

.product-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #f7f9fc 0%, #eef3fa 100%);
    overflow: hidden;
}

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

.product-media .gallery-main {
    object-fit: contain;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--secondary-color);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Value / feature cards ---------- */
.value-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.step-num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ---------- Stats ---------- */
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Forms ---------- */
.quote-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #9aa8bb;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(47, 116, 192, 0.16);
}

.field-input[aria-invalid="true"],
.field-textarea[aria-invalid="true"],
.field-select[aria-invalid="true"] {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

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

.form-status {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-status-success {
    color: #1c7a3f;
}

.form-status-error {
    color: #b3261e;
}

/* ---------- Contact list ---------- */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item i {
    margin-top: 0.2rem;
    color: var(--accent-color);
    width: 18px;
    text-align: center;
}

/* ---------- Footer ---------- */
.footer-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* ---------- Hero carousel ---------- */
.hero-carousel {
    padding-bottom: 2.75rem;
}

.hero-carousel .swiper-slide {
    height: auto;
}

.hero-carousel .swiper-pagination {
    bottom: 0;
}

.hero-carousel .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: var(--primary-color);
    opacity: 0.28;
}

.hero-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
}

.hero-carousel .swiper-button-prev,
.hero-carousel .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-carousel .swiper-button-prev::after,
.hero-carousel .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.hero-carousel .swiper-button-prev:hover,
.hero-carousel .swiper-button-next:hover {
    background: var(--accent-soft);
    color: var(--accent-color);
}

/* Clickable carousel image — subtle zoom on hover to signal it links to the product page */
.carousel-media-link {
    display: block;
    overflow: hidden;
}

.carousel-media-link img {
    transition: transform 0.35s ease;
}

.carousel-media-link:hover img,
.carousel-media-link:focus-visible img {
    transform: scale(1.04);
}

/* ---------- Product gallery (featured image + thumbnails) ---------- */
.gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 1;
}

.gallery-thumb-active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Language switch ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.lang-switch-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch-btn + .lang-switch-btn {
    border-left: 1px solid var(--border-color);
}

.lang-switch-btn:hover {
    color: var(--primary-color);
    background: var(--surface-color);
}

.lang-switch-btn[aria-pressed="true"] {
    background: var(--primary-color);
    color: #ffffff;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    font-size: 2.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5c;
    color: #ffffff;
    transform: scale(1.05);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 639px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }

    .lang-switch-btn {
        padding: 0.45rem 0.55rem;
        font-size: 0.72rem;
    }

    .hero-carousel .swiper-button-prev,
    .hero-carousel .swiper-button-next {
        display: none;
    }

    /* 16px prevents iOS from auto-zooming when a field is focused */
    .field-input,
    .field-textarea,
    .field-select {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero-title {
        font-size: clamp(1.55rem, 7.8vw, 2.15rem);
        letter-spacing: -0.02em;
    }

    .eyebrow {
        letter-spacing: 0.1em;
    }

    .btn-brand,
    .btn-brand-outline,
    .btn-brand-light {
        max-width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* ---------- WhatsApp buttons ---------- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    background: #25d366;
    border: 1px solid #25d366;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ---------- Final WhatsApp call-to-action band ---------- */
.cta-whatsapp {
    background: var(--primary-color);
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.cta-whatsapp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

.cta-whatsapp-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.16);
    color: #25d366;
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
}

.cta-whatsapp-title {
    color: #ffffff;
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.cta-whatsapp-text {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta-whatsapp .btn-whatsapp {
    margin-top: 1.75rem;
    width: 100%;
    max-width: 22rem;
}

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

/* ---------- FAQ accordion ---------- */
.faq-list {
    display: grid;
    gap: 0.85rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
    border-color: #cdd9e8;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 56px;
    padding: 1.15rem 1.25rem;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-chevron {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-chevron.is-open {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- Quick quote modal (site-wide) ---------- */
.quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 120;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.quote-modal.is-open {
    display: flex;
}

.quote-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 42, 82, 0.55);
}

.quote-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 30rem;
    margin: auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.quote-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
}

.quote-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary-color);
}

.quote-modal-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary-color);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.quote-modal-close:hover {
    background: var(--surface-color);
    color: var(--accent-color);
}

.quote-modal-form {
    padding: 1.35rem;
}

.quote-modal-field {
    margin-bottom: 1rem;
}

.quote-modal-note {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
    color: var(--text-muted);
}

body.quote-modal-open {
    overflow: hidden;
}

@media (max-width: 639px) {
    .quote-modal-form {
        padding: 1.15rem;
    }
}

/* ---------- Quick quote modal: product checkboxes ---------- */
.quote-modal-checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 560px) {
    .quote-modal-checks {
        grid-template-columns: 1fr 1fr;
    }
}

.quote-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.quote-check:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.quote-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.quote-check input:checked + span {
    font-weight: 600;
}

/* ---------- Quick quote modal: presentación y cantidad por producto ---------- */
.quote-details {
    display: grid;
    gap: 0.75rem;
}

.quote-details[hidden] {
    display: none;
}

.quote-detail-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    padding: 0.85rem 0.9rem;
}

.quote-detail-name {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.quote-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 460px) {
    .quote-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.quote-detail-unknown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}

.quote-detail-unknown input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* ---------- Quick quote modal: presentation checkboxes + per-presentation quantity ---------- */
.quote-detail-options {
    margin-bottom: 0.85rem;
}

.quote-detail-rows {
    display: grid;
    gap: 0.85rem;
}

.quote-detail-row[hidden] {
    display: none;
}

.quote-detail-row .quote-detail-unknown {
    margin-top: 0.55rem;
}

/* ---------- Precio base en tarjetas de producto ---------- */
.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.price-prefix,
.price-unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--price-color);
}

.product-price-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}