/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    color: #fff;
    z-index: 999;
}

.hero-section {
    min-height: 50vh;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    background-color: var(--pat-bg-soft);
    border-radius: 24px;
    margin-top: 1.5rem;
}

/* Rectángulo que hace de foto en el hero */
.hero-section {
    min-height: 50vh;
    padding-top: 1.5rem;
}

/* Contenedor de la imagen del hero */
.hero-image-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* Imagen del hero */
.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}


/* ---------- Fuentes y colores base ---------- */

:root {
    /* Fondo general muy claro */
    --pat-bg: #f7f8fa;

    /* Fondo suave (azul gris del logo) */
    --pat-bg-soft: #e6eaf0;

    /* Azul gris principal del logo */
    --pat-primary: #99abbe;

    /* Marron del logo para acentos */
    --pat-accent: #956654;

    /* Marron calido para detalles */
    --pat-brown: #956654;

    /* Marron muy suave / beige */
    --pat-brown-soft: #e7ddd6;

    /* Color principal del texto */
    --pat-text: #3b2c26;

    /* Color de acento mas oscuro */
    --pat-accent-dark: #7a4f3f;
}

body {
    background-color: var(--pat-bg);
    color: var(--pat-text);
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Header y navbar */

header {
    background-color: #ffffff;
}

.navbar-brand {
    font-family: inherit;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pat-text);
}

.navbar-brand:hover {
    color: var(--pat-accent-dark);
}

.brand-logo {
    height: 80px;
    width: auto;
    display: block;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    margin-right: 0.5rem;
    color: var(--pat-text);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--pat-accent-dark);
}

/* OUTLET un poco más destacado */
.navbar-nav .nav-link.text-danger {
    font-weight: 600;
    color: var(--pat-accent);
}

/* Titulares dentro de la página */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.lead {
    font-family: inherit;
    color: var(--pat-text);
}

/* ---------- Botones ---------- */

.btn-dark {
    background-color: var(--pat-accent);
    border-color: var(--pat-accent);
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: var(--pat-accent-dark);
    border-color: var(--pat-accent-dark);
}

.btn-outline-dark {
    color: var(--pat-text);
    border-color: var(--pat-text);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--pat-text);
    border-color: var(--pat-text);
    color: #ffffff;
}

/* Iconos de cabecera (favoritos y carrito) */
.nav-icon-link {
    color: var(--pat-text);
}

.nav-icon-link:hover,
.nav-icon-link:focus {
    color: var(--pat-accent-dark);
}

/* ---------- Bloque redes sociales ---------- */

.social-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.social-section p {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.social-links .social-link {
    text-decoration: none;
    color: var(--pat-text);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.social-links .social-link:hover,
.social-links .social-link:focus {
    color: var(--pat-accent-dark);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* ---------- Bloque de confianza: Envíos con mimo ---------- */

.trust-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.trust-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.trust-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

/* ---------- Hero principal full-width con imagen de fondo ---------- */

.hero-full {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

/* La imagen de fondo del hero */
.hero-with-bg {
    background-image: url("../images/hero-default.jpg"); /* usa tu imagen aquí */
    background-size: cover;
    background-position: center;
}

/* Capa encima de la foto para que se lea el texto (degradado azul-beige) */
.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(247, 248, 250, 0.92) 0%,
        rgba(247, 248, 250, 0.85) 45%,
        rgba(247, 248, 250, 0.25) 100%
    );
}

/* El container del hero ocupa todo el ancho; damos aire lateral */
.hero-full .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .hero-inner {
        padding-top: 4rem;
        padding-bottom: 4rem;
        padding-left: 3rem;
    }
}

/* Imagen sin recuadro, pegada al borde */
.hero-image {
    width: 100%;
    height: 100%;
    max-height: 460px;       /* para que no se dispare de alta */
    object-fit: cover;
    border-radius: 0;        /* sin esquinas redondeadas */
    display: block;
}

@media (max-width: 767.98px) {
    .hero-image {
        max-height: 320px;
    }
}

/* ---------- Ficha de producto ---------- */

.product-image-wrapper {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

/* ---------- Iconos cabecera: favoritos + carrito ---------- */

.nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 0;
}

.nav-icon-btn:hover {
    background-color: var(--pat-bg-soft);
}

.nav-heart-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Bolsa del carrito dibujada con CSS */
.cart-bag {
    width: 18px;
    height: 16px;
    border: 1.5px solid var(--pat-text);
    border-radius: 3px;
    position: relative;
}

.cart-bag::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: -6px;
    height: 7px;
    border-radius: 999px 999px 0 0;
    border: 1.5px solid var(--pat-text);
    border-bottom: none;
}

/* Burbujita con el contador del carrito */
.nav-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background-color: var(--pat-primary);
    color: #ffffff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- Footer principal ---------- */

.site-footer {
    background-color: var(--pat-accent-dark); /* marrón muy oscuro */
    color: #ffffff;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

.site-footer .footer-logo {
    font-family: inherit;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer .footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-menu li + li {
    margin-top: 0.35rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--pat-primary);
    text-decoration: underline;
}

.footer-social {
    display: inline-flex;
    gap: 0.5rem;
}

.footer-social-link {
    text-decoration: none;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #ffffff;
}

.footer-social-link:hover .footer-social-icon {
    background-color: #ffffff;
    color: var(--pat-accent-dark);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--pat-primary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

@media (max-width: 767.98px) {
    .site-footer {
        text-align: center;
    }

    .site-footer .text-md-end {
        text-align: center !important;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ---------- Corazones de favoritos (solo visual) ---------- */

/* Tarjetas de producto */
.product-card {
    position: relative;
}

.product-fav-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
    background-color: #ffffff;
    color: var(--pat-text);
    text-decoration: none;
}

.product-fav-btn:hover {
    background-color: var(--pat-bg-soft);
}

/* Corazón en ficha de producto */
.product-fav-inline {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    background-color: #ffffff;
    color: var(--pat-text);
    text-decoration: none;
}

.product-fav-inline:hover {
    background-color: var(--pat-bg-soft);
}

/* ---------- Páginas de servicio: papelería y mesas dulces ---------- */

.service-section {
    margin-bottom: 3rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-howwework {
    background-color: var(--pat-bg-soft);
}

.service-cta {
    background-color: var(--pat-brown-soft);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
}

/* ---------- Galería de fotos en ficha de producto ---------- */

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-main-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-main-image img {
    width: 100%;
    display: block;
    transition: transform 0.25s ease;
}

/* Estado con zoom activado */
.product-main-image.zoomed {
    transform: scale(1.03);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    cursor: zoom-out;
}

.product-main-image.zoomed img {
    transform: scale(1.25);
}

.product-thumbs {
    display: flex;
    gap: 0.5rem;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background-color: #ffffff;
    padding: 0;
    cursor: pointer;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb.is-active {
    border-color: var(--pat-primary);
}

@media (min-width: 768px) {
    .product-thumb {
        width: 80px;
        height: 80px;
    }
}

/* Favoritos */
.product-fav-form { position: absolute; top: 10px; right: 10px; }
.product-fav-btn { background: transparent; border: 0; font-size: 20px; line-height: 1; cursor: pointer; }

/* Fotos de producto: todas iguales */
.card.product-card img.card-img-top{
  width: 100%;
  aspect-ratio: 3 / 4;        /* alto consistente */
  object-fit: cover;
  object-position: 50% 20%;   /* enseña más “arriba” en selfies */
  background: #f6f6f6;
}

/* ===== Tipografía global (uniforme) ===== */
:root{
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

body{
  font-family: var(--font-body);
}

/* Títulos y elementos “headline” */
h1, h2, h3, h4, h5, h6,
.hero-title,
.pat-topbar-title{
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
}

/* Botones y navegación más limpios */
.navbar, .btn{
  font-family: var(--font-body);
}

/* ===== Footer más compacto ===== */
.site-footer{
  padding: 24px 0 14px;   /* menos alto */
}

.site-footer .footer-title{
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.site-footer .footer-tagline{
  margin-top: 6px;
  line-height: 1.4;
}

.site-footer .footer-menu li{
  margin-bottom: 6px;     /* menos separación */
}

.site-footer .footer-link{
  font-size: 0.92rem;     /* un pelín más pequeño */
}

.site-footer .footer-bottom{
  margin-top: 16px;       /* menos aire abajo */
  padding-top: 12px;
}

/* ===== Tipografía unificada (igual que el footer) ===== */
:root{
  --pat-font-base: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pat-font-title: 'Playfair Display', Georgia, "Times New Roman", serif;
}

body{
  font-family: var(--pat-font-base);
}

/* Títulos/branding (muy parecido a lo que se percibe en el footer) */
h1,h2,h3,.footer-logo,.pat-topbar-title{
  font-family: var(--pat-font-title);
}

/* Ajustes para que se parezca al footer (mayúsculas + spacing suave) */
.footer-logo{
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Topbar igual que el texto normal */
.pat-topbar-title{
  font-family: var(--pat-font-base) !important;
  letter-spacing: 0;
  text-transform: none;
}
