/* =========================================
   SAGALEX — Estilos globales
   Paleta: Azul Navy + Verde Esmeralda + Rojo Coral + Blanco
   Tipografía: Cormorant Garamond + Jost
   ========================================= */

:root {
    --azul-primary: #0B3954;
    --azul-light: #1565A0;
    --verde-accent: #2D936C;
    --verde-light: #4CAF88;
    --rojo-cta: #E63946;
    --rojo-hover: #FF4D5A;
    --blanco: #FFFFFF;
    --blanco-soft: #F9FAFB;
    --gris-texto: #2C3E50;
    --gris-medio: #546E7A;
    --gris-claro: #ECEFF1;
    --negro-suave: #1A1F2E;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(11, 57, 84, 0.08);
    --shadow-md: 0 6px 24px rgba(11, 57, 84, 0.12);
    --shadow-lg: 0 16px 48px rgba(11, 57, 84, 0.16);

    --transition: 0.3s ease;
}

/* -------- RESET -------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 19px;
}

body {
    font-family: var(--font-body);
    background: var(--blanco-soft);
    color: var(--gris-texto);
    line-height: 1.7;
    font-weight: 300;
    font-size: 1.13rem;
}

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

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

/* -------- TIPOGRAFÍA -------- */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
}

h1 {
    font-size: clamp(3.2rem, 6vw, 5.4rem);
}

h2 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
}

h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.23rem;
    line-height: 1.4;
}

p {
    font-size: 1.18rem;
    line-height: 1.75;
}

em {
    font-style: italic;
    color: var(--verde-accent);
}

/* -------- BOTONES -------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--rojo-cta);
    color: var(--blanco);
    border-color: var(--rojo-cta);
}

.btn-primary:hover {
    background: var(--rojo-hover);
    border-color: var(--rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

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

.btn-outline:hover {
    background: var(--azul-primary);
    color: var(--blanco);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.18rem;
}

/* -------- SECTION TAG -------- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.11rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--verde-accent);
    border: 1px solid var(--verde-accent);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* -------- SECTION HEADER -------- */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header p {
    margin-top: 12px;
    color: var(--gris-medio);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================
   HEADER / NAV
   ============================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(11, 57, 84, 0.12);
    padding: 18px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--azul-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--verde-accent);
    font-size: 1.13rem;
}

.menu {
    list-style: none;
    display: flex;
    gap: 36px;
}

.menu a {
    font-family: var(--font-body);
    font-size: 1.13rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--gris-medio);
    position: relative;
    transition: color var(--transition);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--verde-accent);
    transition: width var(--transition);
}

.menu a:hover,
.menu a.active {
    color: var(--azul-primary);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--azul-primary);
}

/* ==============================
   HERO
   ============================== */
.hero {
    min-height: 88vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 80px 80px 80px 80px;
    background: var(--blanco);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(45, 147, 108, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 1.18rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--verde-accent);
    margin-bottom: 18px;
}

.hero-title {
    color: var(--azul-primary);
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--gris-medio);
    max-width: 420px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-deco {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-deco img {
    max-width: 750px;
    width: 100%;
    height: auto;
}

/* ==============================
   PRODUCTOS
   ============================== */
.productos {
    padding: 100px 80px;
    background: var(--blanco-soft);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.producto-card {
    background: var(--blanco);
    border: 1px solid rgba(11, 57, 84, 0.1);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.producto-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--verde-accent);
    transition: width var(--transition);
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 147, 108, 0.3);
}

.producto-card:hover::before {
    width: 100%;
}

.producto-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.producto-card h3 {
    margin-bottom: 10px;
    color: var(--azul-primary);
}

.producto-card p {
    font-size: 1.13rem;
    color: var(--gris-medio);
    line-height: 1.6;
}

/* ==============================
   SOBRE NOSOTROS
   ============================== */
.nosotros {
    background: var(--azul-primary);
    color: var(--blanco);
    padding: 100px 80px;
}

.nosotros-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.nosotros-text .section-tag {
    border-color: rgba(45, 147, 108, 0.7);
    color: var(--verde-light);
}

.nosotros-text h2 {
    color: var(--blanco);
    margin: 16px 0 24px;
}

.nosotros-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    max-width: 520px;
    line-height: 1.75;
}

.valores-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.valores-list li {
    color: var(--verde-light);
    font-size: 1.18rem;
    letter-spacing: 0.03em;
}

.nosotros-badge {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--verde-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    background: rgba(45, 147, 108, 0.1);
}

.badge-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--verde-light);
    line-height: 1;
}

.badge-text {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin-top: 6px;
}

/* ==============================
   TESTIMONIOS
   ============================== */
.testimonios {
    padding: 100px 80px;
    background: var(--blanco);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonio-card {
    background: var(--blanco-soft);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border-left: 3px solid var(--rojo-cta);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.testimonio-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonio-card p {
    font-family: var(--font-display);
    font-size: 1.23rem;
    color: var(--gris-texto);
    line-height: 1.65;
    margin-bottom: 18px;
}

.testimonio-card span {
    font-size: 1.07rem;
    color: var(--gris-medio);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ==============================
   CTA FINAL
   ============================== */
.cta-final {
    padding: 100px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--azul-primary) 0%, var(--azul-light) 100%);
    color: var(--blanco);
    border-top: 1px solid rgba(45, 147, 108, 0.2);
    border-bottom: 1px solid rgba(45, 147, 108, 0.2);
}

.cta-final h2 {
    color: var(--blanco);
    margin-bottom: 14px;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    font-size: 1.18rem;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: var(--negro-suave);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 80px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 60px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-icon {
    color: var(--verde-accent);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blanco);
    letter-spacing: 0.08em;
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 1.09rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 8px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 1.11rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--verde-light);
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--verde-light);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
    font-size: 1.09rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--verde-light);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.09rem;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==============================
   GALERÍA
   ============================== */
.page-hero {
    background: var(--blanco);
    text-align: center;
    padding: 80px 40px 64px;
    border-bottom: 1px solid rgba(11, 57, 84, 0.1);
}

.page-hero h1 {
    margin: 12px 0 14px;
    color: var(--azul-primary);
}

.page-hero p {
    color: var(--gris-medio);
    max-width: 460px;
    margin: 0 auto;
}

.galeria-section {
    padding: 60px 60px 80px;
    background: var(--blanco-soft);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 57, 84, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.grid-overlay span {
    color: var(--blanco);
    font-size: 1.09rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 50px;
}

.grid-item:hover img {
    transform: scale(1.07);
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--blanco);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.13rem;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--rojo-cta);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

#lightboxImage {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    max-width: 70%;
}

#lightboxTitle {
    color: #fff;
    font-size: 28px;
}

#lightboxDesc {
    color: #ccc;
    max-width: 500px;
}

/* FONDO OSCURO */
.overlay-expand {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    display: none;
}

/* CARD EXPANDIDA */
.producto-card.expandida {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    width: 60%;
    max-width: 700px;
    z-index: 999;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    transition: 0.3s ease;
}

/* IMAGEN MÁS GRANDE */
.producto-card.expandida img {
    height: 300px;
    object-fit: contain;
}

/* TEXTO MÁS GRANDE */
.producto-card.expandida h3 {
    font-size: 28px;
}

.producto-card.expandida p {
    font-size: 18px;
}

/* ==============================
   CONTACTO
   ============================== */
.contacto-section {
    padding: 80px 80px 60px;
    background: var(--blanco-soft);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.contacto-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px;
    border-radius: var(--radius-md);
    background: var(--blanco);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
    cursor: pointer;
}

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

.contacto-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-wa .contacto-card-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.contacto-email .contacto-card-icon {
    background: rgba(230, 57, 70, 0.1);
    color: var(--rojo-cta);
}

.contacto-fb .contacto-card-icon {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.contacto-ig .contacto-card-icon {
    background: rgba(220, 39, 67, 0.1);
    color: #DC2743;
}

.contacto-wa:hover {
    border-color: #25D366;
}

.contacto-email:hover {
    border-color: var(--rojo-cta);
}

.contacto-fb:hover {
    border-color: #1877F2;
}

.contacto-ig:hover {
    border-color: #DC2743;
}

.contacto-card-info h3 {
    font-size: 1.13rem;
    margin-bottom: 4px;
    color: var(--azul-primary);
}

.contacto-card-info p {
    font-size: 1.09rem;
    color: var(--gris-medio);
    margin-bottom: 8px;
}

.contacto-action {
    font-size: 1.18rem;
    color: var(--verde-accent);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ==============================
   PÁGINAS LEGALES
   ============================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    background: var(--blanco);
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    color: var(--azul-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--verde-accent);
    padding-bottom: 12px;
}

.legal-section h3 {
    color: var(--azul-primary);
    margin: 24px 0 12px;
    font-size: 1.2rem;
}

.legal-section p {
    color: var(--gris-texto);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0 16px 24px;
    color: var(--gris-texto);
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--verde-accent);
    text-decoration: underline;
    transition: color var(--transition);
}

.legal-section a:hover {
    color: var(--azul-primary);
}

.contact-highlight {
    background: var(--blanco-soft);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--verde-accent);
    font-weight: 500;
}

.contact-highlight a {
    color: var(--azul-primary);
    font-size: 1.23rem;
}

.legal-date {
    background: var(--blanco-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 57, 84, 0.1);
    text-align: center;
}

.legal-date h2 {
    border: none;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.legal-date p {
    font-style: italic;
    color: var(--gris-medio);
    margin: 0;
}

/* ==============================
   FORMULARIO DE CONTACTO
   ============================== */
.formulario-wrapper {
    max-width: 700px;
    margin: 60px auto 0;
    background: var(--blanco);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(11, 57, 84, 0.08);
}

.formulario-header {
    text-align: center;
    margin-bottom: 32px;
}

.formulario-header h2 {
    color: var(--azul-primary);
    margin-bottom: 10px;
}

.formulario-header p {
    color: var(--gris-medio);
    font-size: 1.18rem;
}

/* Mensajes de resultado */
.mensaje-resultado {
    display: none;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mensaje-exito {
    background: #E8F5E9;
    border: 1px solid #4CAF88;
    color: #1B5E20;
}

.mensaje-exito svg {
    color: #4CAF88;
    flex-shrink: 0;
    margin-top: 2px;
}

.mensaje-error {
    background: #FFEBEE;
    border: 1px solid #E63946;
    color: #B71C1C;
}

.mensaje-error svg {
    color: #E63946;
    flex-shrink: 0;
    margin-top: 2px;
}

.mensaje-resultado strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.13rem;
}

.mensaje-resultado p {
    margin: 0;
    font-size: 1.13rem;
    line-height: 1.5;
}

/* Estilos del formulario */
.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-family: var(--font-body);
    font-size: 1.13rem;
    font-weight: 500;
    color: var(--azul-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1.13rem;
    padding: 12px 16px;
    border: 1.5px solid rgba(11, 57, 84, 0.2);
    border-radius: var(--radius-sm);
    background: var(--blanco-soft);
    color: var(--gris-texto);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-accent);
    background: var(--blanco);
    box-shadow: 0 0 0 3px rgba(45, 147, 108, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #E63946;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gris-medio);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.char-counter {
    font-size: 1.18rem;
    color: var(--gris-medio);
    text-align: right;
    margin-top: 6px;
}

/* Checkbox de privacidad */
.form-checkbox {
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 1.13rem;
    color: var(--gris-texto);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--verde-accent);
}

.checkbox-label a {
    color: var(--verde-accent);
    text-decoration: underline;
    transition: color var(--transition);
}

.checkbox-label a:hover {
    color: var(--azul-primary);
}

/* Botón de envío */
.btn-form {
    margin-top: 12px;
    justify-content: center;
    position: relative;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.form-note {
    text-align: center;
    font-size: 1.09rem;
    color: var(--gris-medio);
    margin: 8px 0 0 0;
    font-style: italic;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .hero {
        padding: 60px 48px;
        gap: 24px;
    }

    .productos {
        padding: 80px 48px;
    }

    .nosotros {
        padding: 80px 48px;
    }

    .testimonios {
        padding: 80px 48px;
    }

    .cta-final {
        padding: 80px 48px;
    }

    .footer {
        padding: 60px 48px 0;
    }

    .galeria-section {
        padding: 60px 40px;
    }

    .contacto-section {
        padding: 60px 48px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanco-soft);
        border-bottom: 1px solid rgba(11, 57, 84, 0.15);
        padding: 12px 0;
    }

    .menu.open {
        display: flex;
    }

    .menu li {
        padding: 10px 28px;
    }

    .menu a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header {
        position: relative;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 28px;
        min-height: auto;
    }

    .hero-subtitle {
        margin: 0 auto 28px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-deco {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
    }

    .hero-deco img {
        max-width: 550px;
    }

    .c1 {
        height: 120px;
    }

    .c2 {
        height: 160px;
    }

    .c3 {
        height: 100px;
    }

    .carousel-track img {
        height: 260px;
    }

    .productos {
        padding: 60px 24px;
    }

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

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

    .nosotros {
        padding: 60px 24px;
    }

    .nosotros-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nosotros-badge {
        margin: 0 auto;
    }

    .testimonios {
        padding: 60px 24px;
    }

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

    .cta-final {
        padding: 60px 24px;
    }

    .footer {
        padding: 48px 24px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .galeria-section {
        padding: 40px 20px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contacto-section {
        padding: 48px 24px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

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

    .legal-content {
        padding: 40px 24px 60px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .formulario-wrapper {
        padding: 28px 20px;
        margin-top: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formulario-wrapper {
        padding: 24px 16px;
    }

    .formulario-header h2 {
        font-size: 1.4rem;
    }
}

.producto-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.producto-card img {
    height: 250px;
    object-fit: cover;
    object-fit: contain;
    background: #f5f5f5;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.producto-card .card-body {
    background: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px;
}

.producto-card {
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.img-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.img-container img {
    width: 100%;
    height: 250px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.4s;
}

.producto-card:hover img {
    transform: scale(1.0);
}

.info {
    padding: 15px;
    text-align: center;
}

.info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info p {
    font-size: 14px;
    color: #777;
}

.productos-scroll {
    padding: 40px 20px;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.scroll-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.card-producto {
    min-width: 220px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: 0.3s;
    cursor: pointer;
}

.card-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.img-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.info {
    padding: 10px;
    text-align: center;
}

.info h3 {
    font-size: 25px;
    margin-bottom: 5px;
}

.info p {
    color: #666;
    font-size: 18px;
}

/* ==============================
   EXPAND CARD (NUEVO)
   ============================== */

.overlay-expand {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    display: none;
}

.producto-card.expandida {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.15);
    width: 60%;
    max-width: 650px;
    z-index: 999;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.producto-card.expandida .img-container {
    height: 300px;
}

.producto-card.expandida h3 {
    font-size: 26px;
}

.producto-card.expandida p {
    font-size: 16px;
}