@font-face {
    font-family: 'MiFuente';
    src: url('fuente/Ephesis-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #292524;
    background-color: #fafaf9;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: #1c1917;
    color: #fafaf9;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #d6d3d1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.3rem;
}

.nav-link:hover {
    color: #f59e0b;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #d6d3d1;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    color: #f59e0b;
}

.hidden {
    display: none !important;
}

.mobile-nav {
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #d6d3d1;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: #f59e0b;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(28, 25, 23, 0.7), rgba(28, 25, 23, 0.5), rgba(28, 25, 23, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #fafaf9;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #e7e5e4;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    background-color: #d97706;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #b45309;
}



/* Products Section */

.btn-Prod {
    background-color: #d97706;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;

    margin: 3.5rem auto 0;
    /* CENTRADO REAL */
    display: block;
}

.products-section {
    padding: 5rem 1rem;
    background-color: #f5f5f4;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #57534e;
    max-width: 42rem;
    margin: 0 auto;
}

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

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

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

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    height: 18rem;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-era {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #d97706;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #57534e;
    margin-bottom: 1rem;
    font-size: 0.875rem;

    /* 🔽 CLAMP DE TEXTO */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* ← cambiá a 5 si querés */
    overflow: hidden;
}


.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #b45309;
}

.product-btn {
    background-color: #1c1917;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-btn:hover {
    background-color: #292524;
}

/* About Section */
.about-section {
    padding: 5rem 1rem;
    background-color: #fafaf9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

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

.about-title {
    font-size: 2.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 1.5rem;
}

.about-paragraph {
    color: #57534e;
    margin-bottom: 1rem;
}

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

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: #d97706;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #57534e;
}

/* Contact Section */
.contact-section {
    padding: 5rem 1rem;
    background-color: #f5f5f4;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-title {
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.contact-text {
    color: #57534e;
    font-size: 1rem;
}

.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: 1.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #44403c;
    margin-bottom: 0.5rem;
}

.form-input {
    padding: 0.5rem 1rem;
    border: 1px solid #d6d3d1;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

textarea.form-input {
    resize: vertical;
}

.form-submit {
    width: 100%;
    background-color: #d97706;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #b45309;
}

/* Footer */
.footer {
    background-color: #1c1917;
    color: #d6d3d1;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    color: #d97706;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #fafaf9;
}

.footer-description {
    font-size: 0.875rem;
    color: #a8a29e;
}

.footer-heading {
    font-family: Georgia, 'Times New Roman', serif;
    color: #fafaf9;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #a8a29e;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-text {
    color: #a8a29e;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #a8a29e;
    transition: color 0.3s;
}


.social-link:hover {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid #292524;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #a8a29e;
}


/* ===== HEADER HERO ===== */

.header-hero {
    position: relative;
    height: 260px;
    /* ajustable */
    overflow: hidden;
    color: white;
}

.header-bg {
    position: absolute;
    inset: 0;
}

.header-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* oscurece fondo */
}

/* Contenido encima */
.header-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Marca */
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 20px;
}

.brand-logo {
    height: 245px;
    /* tamaño escudo */
    width: auto;
}

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

.brand-title {
    font-family: 'MiFuente', cursive;
    font-size: 3.5rem;
    margin: 0;
    font-style: normal;
}

.brand-subtitle {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
}

/* Navegación */
.hero-nav {
    display: flex;
    gap: 2rem;
}

.hero-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.hero-nav a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-hero {
        height: auto;
        padding: 2rem 0;
        overflow: visible;
        height: auto;
    }

    .header-hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-nav {
        gap: 1rem;
    }

    .brand-logo {
        height: 90px;
    }
}


/* Dropdown mobile debajo del header */
.header-hero #mobileNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(28, 25, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-hero #mobileNav .mobile-nav-link {
    display: block;
    text-align: center;
    color: #d6d3d1;
    text-decoration: none;
    font-size: 1.15rem;
}

.header-hero #mobileNav .mobile-nav-link:hover {
    color: #f59e0b;
}

/* Fondo no tapa clicks */
.header-bg {
    pointer-events: none;
}


.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    background: #25D366;
    /* después lo ajustás */
}

.wa-float img {
    width: 55px;
    height: 55px;
}

/* ===== Modal Producto (tu layout) ===== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 20000;

    /* centra la caja */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-media {
    position: relative;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

/* LA CAJA REAL del modal */
.modal-box {
    padding: 20px;
    position: relative;
    z-index: 1;

    width: min(1200px, 96vw);
    max-height: calc(100vh - 40px);

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);

    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* importante para que no “se salga” nada */
}

.modal-close {
    color: red;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, .08);
    z-index: 99999;
    pointer-events: auto;
}

.modal-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;

    flex: 0 0 auto;
    overflow: visible;
    padding-bottom: 12px;
}

.modal-main-img {
    width: 100%;
    height: 52vh;
    max-height: 520px;
    object-fit: contain;
    border-radius: 12px;
    background: #f2f2f2;
}

.modal-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 10px;

    flex-wrap: nowrap;
    /* 1 sola fila */
    overflow-x: auto;
    /* scroll horizontal */
    overflow-y: hidden;
    max-width: 100%;

    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.modal-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: .85;
    border: 2px solid transparent;
    flex: 0 0 auto;
    /* evita que se achiquen raro */
}

.modal-thumbs img.active {
    border-color: #d97706;
    opacity: 1;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
}

.modal-title {
    margin: 0;
    font-size: 1.6rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.modal-wa-btn,
.modal-ml-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: .95rem;
}

.modal-wa-btn {
    background: #25D366;
}

.modal-ml-btn {
    background: #ffe600;
}

.modal-era {
    margin: 0;
    color: #444;
}

/* Bottom: descripción scrolleable */
.modal-bottom {
    margin-top: 16px;
    /* ← más separación (esto evita “pegado”) */
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .08);

    flex: 1 1 auto;
    /* ← ocupa el alto restante */
    min-height: 0;
    /* ← CLAVE para que el scroll funcione bien */
    overflow-y: auto;
    padding-left: 6px;
    padding-right: 6px;
}

.modal-desc {
    margin: 0 0 10px;
    color: #222;
}

.modal-price {
    margin: 0;
    font-weight: 700;
}

/* Mapa */
.map-embed {
    width: 100%;
    height: clamp(220px, 35vh, 360px);
    /* min 220px, ideal 35vh, max 360px */
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


@media (min-width: 768px) {
    .map-embed {
        height: 420px;
    }
}

.product-card-full {
    cursor: pointer;
}

.contact-info a.footer-link {
    font-weight: 500;
    font-size: 1rem;
}

.contact-info a.footer-link:hover {
    text-decoration: underline;
}

/* Flechas del carrusel */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;

    display: grid;
    place-items: center;

    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}

.modal-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.modal-arrow-left {
    left: 12px;
}

.modal-arrow-right {
    right: 12px;
}

/* Contenedor relativo */
.modal-left {
    position: relative;
}

/* =========================
   FIX MODAL MOBILE (ganar por cascada)
   pegado al final del CSS
   ========================= */
@media (max-width: 820px) {

    .modal {
        padding: 14px !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    .modal-box {
        width: 100% !important;
        max-height: calc(100vh - 28px) !important;
        padding: 16px !important;

        overflow-y: auto !important;
        /* ✅ scroll general */
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    .modal-top {
        display: flex !important;
        /* ✅ mata el grid */
        flex-direction: column !important;
        gap: 12px !important;
        overflow: visible !important;
        padding-bottom: 10px !important;
    }



    .modal-left {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .modal-right {
        width: 100% !important;
        padding-top: 0 !important;
        gap: 8px !important;
    }

    .modal-title {
        font-size: 1.2rem !important;
        line-height: 1.25 !important;
    }

    .modal-price {
        font-size: 1rem !important;
    }

    /* ✅ Thumbs: 1 fila con scroll horizontal */
    .modal-thumbs {
        margin-top: 10px;
        display: flex;
        gap: 10px;

        flex-wrap: nowrap;
        /* 1 sola fila */
        overflow-x: auto;
        /* scroll horizontal */
        overflow-y: hidden;
        max-width: 100%;

        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .modal-thumbs img {
        flex: 0 0 auto;
    }


    /* ✅ Sacamos el scroll interno de descripción */
    .modal-bottom {
        overflow: visible !important;
        flex: 0 0 auto !important;
    }

    .modal-thumbs {
        cursor: grab;
        padding: 8px 2px 10px !important;
    }

    .modal-left,
    .modal-top,
    .modal-box {
        min-width: 0 !important;
        /* ✅ permite que overflow-x funcione */
    }

    .modal-main-img {
        height: 38vh !important;
        max-height: 360px !important;
    }

}

 /* Loading Overlay (para mostrar mientras se cargan los productos) */
.loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay.hidden{
  display: none !important;
}

.loading-box{
  background: white;
  padding: 18px 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-family: inherit;
}

.spinner{
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}
