:root {
    --color-bg: #f5f1eb;
    --color-surface: #ffffff;
    --color-primary: #7b4e2b;
    --color-primary-dark: #4a2b14;
    --color-text: #222222;
    --color-muted: #666666;
    --color-border: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Lexend", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.button--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.button--dark {
    background: var(--color-primary-dark);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.topbar {
    background: #1f1f1f;
    color: #fff;
    font-size: 0.92rem;
}

.topbar__content {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar__content p {
    margin: 0;
}

.topbar__link {
    font-weight: 600;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__content {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header__logo,
.footer__logo {
    width: 200px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
}

.nav a {
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    background-image: url("../img/banner.jpeg");
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 14, 8, 0.82) 0%, rgba(22, 14, 8, 0.62) 44%, rgba(22, 14, 8, 0.4) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    min-height: 700px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 36px;
    padding: 96px 0;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 0.98;
    margin-bottom: 20px;
}

.hero__description {
    max-width: 650px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 30px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero__highlights li {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.quote-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.quote-card h2 {
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.quote-card p {
    color: var(--color-muted);
    line-height: 1.7;
}

.quote-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 36px;
}

.section-heading h2,
.intro h2,
.stats h2,
.coverage h2,
.contact h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0;
    line-height: 1.05;
}

.section-heading > p,
.intro__grid > p,
.stats__content p,
.coverage p,
.contact__info > p:last-of-type {
    max-width: 620px;
    line-height: 1.8;
    color: var(--color-muted);
}

.intro {
    background: #efe5d9;
}

.intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.products-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.product-card {
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card__body {
    padding: 22px 22px 24px;
}

.product-card h3,
.benefit-card h3,
.contact__card h3 {
    font-size: 1.28rem;
    margin-bottom: 10px;
}

.product-card__price {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card p,
.benefit-card p,
.contact__card p {
    color: var(--color-muted);
    line-height: 1.7;
}

.link-arrow {
    display: inline-flex;
    margin-top: 16px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.services {
    background: linear-gradient(180deg, #f5f1eb 0%, #fbf8f4 100%);
}

.benefit-card {
    padding: 26px;
}

.stats {
    background: #23150d;
    color: #fff;
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.stats__content p:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.stats__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    min-height: 180px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.stat-card strong {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.mapa iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}


.coverage__grid,
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.coverage__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.coverage__tags span {
    padding: 14px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}

.contact {
    background: #efe5d9;
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.contact__card {
    padding: 34px;
}

.contact__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.contact .button--ghost {
    color: var(--color-primary-dark);
    border-color: rgba(74, 43, 20, 0.2);
}

.footer {
    background: #5c5d5c;
    color: rgba(255, 255, 255, 0.78);
    padding: 42px 0;
}

.footer__content {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

@media (max-width: 1100px) {
    .hero__content,
    .intro__grid,
    .stats__grid,
    .coverage__grid,
    .contact__grid,
    .products-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero__content {
        min-height: auto;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 860px) {
    .nav,
    .header__cta {
        display: none;
    }

    .topbar__content,
    .header__content {
        justify-content: center;
    }

    .hero {
        background-position: center right;
    }

    .hero__content {
        padding: 74px 0;
    }

    .quote-card,
    .contact__card {
        padding: 24px;
    }

    .stats__cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 68px 0;
    }

    .topbar__content {
        justify-content: center;
        text-align: center;
        padding: 10px 0;
    }

    .header__logo,
    .footer__logo {
        width: 150px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero__description,
    .section-heading > p,
    .intro__grid > p,
    .stats__content p,
    .coverage p,
    .contact__info > p:last-of-type {
        font-size: 0.98rem;
    }

    .hero__actions,
    .contact__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero__highlights {
        flex-direction: column;
        align-items: start;
    }

    .stats__cards {
        grid-template-columns: 1fr;
    }
}


.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    font: inherit;
    background: #fff;
}

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

.form-message {
    min-height: 24px;
    margin: 0;
    font-size: 0.95rem;
}

.form-message--success {
    color: #157347;
}

.form-message--error {
    color: #b42318;
}

.admin-page {
    min-height: 100vh;
}

.admin-card {
    padding: 28px;
}

.admin-toolbar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-status {
    color: var(--color-muted);
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
}

.quotes-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.quotes-table th,
.quotes-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: top;
    font-size: 0.95rem;
}

.quotes-table th {
    background: #f7f1ea;
    color: var(--color-primary-dark);
}

/* Login admin ALCAR */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a, #1f2937);
}

.login-card {
  width: min(420px, 100%);
  background: #ffffff;
  padding: 36px;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  margin: 0 0 8px;
}

.login-sub,
.login-message {
  color: #64748b;
}

.login-message {
  min-height: 22px;
  color: #b91c1c;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  margin: 10px 0;
  padding: 13px 14px;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  font: inherit;
}

.login-card input:focus {
  outline: 2px solid rgba(38, 99, 235, 0.22);
  border-color: #2563eb;
}

.login-card button {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.notification-box {
  margin-top: 20px 0;
  padding: 14px 20px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#contadorCotizaciones {
    color:#22c55e;
    font-size: 18px;
    margin-left:6px;
}

.miniaturas {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.miniaturas img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.miniaturas img:hover {
    transform: scale(1.05);
}