:root {
    --td-primary: #0387e6;
    --td-secondary: #f76d04;
    --td-accent: #ba5100;
    --td-dark: #1b2430;
    --td-bg: #f6f7fb;
    --td-radius-lg: 1.2rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: #222;
    background-color: #fff;
}

/* ============================================================
   BANNER HERO (debajo de la barra de navegación)
   ============================================================ */
.td-banner-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px); /* el banner ocupa el alto total menos el header */
    background-size: cover;
    background-position: center;
}


.td-banner-hero__overlay {
    width: 100%;
    height: 100%;
    padding: 3rem 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    );
    display: flex;
    align-items: center;
}

.td-banner-hero__box {
    max-width: 720px;
    background: rgba(255, 255, 255, 0.689);
    border-radius: var(--td-radius-lg);
    padding: 1.8rem 2.4rem;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.td-banner-hero__tagline {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1rem;
    color: var(--td-primary);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.td-banner-hero__title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--td-dark);
    margin-bottom: 0.4rem;
}

.td-banner-hero__subtitle {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

.td-banner-hero__actions .btn {
    min-width: 150px;
}

/* ============================================================
   MAIN GENERAL
   ============================================================ */
.td-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Tarjetas de servicio/producto */
.td-service-card,
.td-product-card {
    background-color: #ffffff;
    border-radius: var(--td-radius-lg);
    padding: 1.8rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.td-service-image,
.td-product-image {
    max-height: 240px;
    object-fit: cover;
    border-radius: var(--td-radius-lg);
}

.td-service-title,
.td-product-title {
    color: var(--td-dark);
}

/* Bandas de frases célebres */
.td-quote-strip {
    padding: 1.8rem 0;
    text-align: center;
}

.td-quote-strip--primary {
    background-color: var(--td-primary);
}

.td-quote-strip--secondary {
    background-color: var(--td-secondary);
}

.td-quote-strip--accent {
    background-color: var(--td-accent);
}

.td-quote-strip p {
    margin: 0;
    color: #fdfafa;
    font-weight: 500;
}

/* RESUMEN CARRITO */
.td-cart-summary {
    margin-top: 2rem;
    padding: 1.5rem 1.8rem;
    border-radius: var(--td-radius-lg);
    background-color: var(--td-bg);
}

/* ============================================================
   ALERTAS
   ============================================================ */
.td-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.td-alert--success {
    background-color: #d1fae5;
    color: #065f46;
}

.td-alert--error {
    background-color: #fee2e2;
    color: #b91c1c;
}
/* ----- COMPONENTE ARTÍCULO DE PRODUCTO articulo.php---- */
.td-product {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
}

.td-product-image-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.td-product-title {
  font-weight: 600;
}

.td-product-list {
  padding-left: 1.2rem;
}

.td-product-list li + li {
  margin-top: 0.25rem;
}

/* ----- menu para incluir en las subpaginas de menu con iconos a incluir en las pages---- */
.td-subnav-item {
  border-radius: 999px;
  font-size: 0.9rem;
  padding-inline: 1rem;
}

.td-subnav-item i {
  font-size: 1rem;
}

/* Scroll suave en toda la web */
html {
  scroll-behavior: smooth;
}
