/* Pinturas Coruña — estilos complementarios */

:root {
  --color-navy: #0B1728;
  --color-navy-light: #0D1F35;
  --color-cyan: #0094A8;
  --color-cyan-hover: #007A8C;
  --color-gold: #FFB313;
  --color-gold-hover: #E6A010;
  --color-whatsapp: #25D366;
  --header-height: 4.75rem;
  /* Paleta pintura — inspirada en guía de colores */
  --paint-sky: #9DD4EF;
  --paint-blue: #3D8CC4;
  --paint-teal: #0094A8;
  --paint-sea: #5BC4B8;
  --paint-gold: #FFB313;
  --paint-peach: #F4A582;
  --paint-coral: #E8754A;
  --paint-mint: #A8E6CF;
  --paint-green: #6BBF59;
  --paint-lavender: #B8A9D4;
  --paint-rose: #E8879B;
  --paint-red: #D94C4C;
  --paint-navy: #1E3A5F;
}

@media (min-width: 1024px) {
  :root {
    --header-height: 5.25rem;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.hero-section {
  padding-top: var(--header-height, 4.75rem);
}

/* Sección Garantía */
.garantia-seal {
  filter: drop-shadow(0 12px 28px rgba(11, 23, 40, 0.12));
}

.garantia-copy p + p {
  margin-top: 1rem;
}

.garantia-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.garantia-list li + li {
  margin-top: 0.75rem;
}

/* Sección Testimonios */
.testimonios-section {
  background: linear-gradient(165deg, #eef6f7 0%, #e3f0f2 45%, #f2f8f9 100%);
}

.testimonios-image {
  filter: drop-shadow(0 12px 28px rgba(11, 23, 40, 0.12));
}

.testimonios-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonio-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 18px rgba(11, 23, 40, 0.06);
  border: 1px solid rgba(0, 148, 168, 0.1);
}

.testimonio-stars {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.testimonio-author {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #0b1728;
  font-size: 1rem;
}

.testimonio-quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(0, 148, 168, 0.35);
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonio-antes-despues-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0094a8;
  background: rgba(0, 148, 168, 0.08);
  border: 1px solid rgba(0, 148, 168, 0.35);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonio-antes-despues-btn:hover {
  color: #fff;
  background: #0094a8;
  border-color: #0094a8;
}

.testimonio-antes-despues-btn::before {
  content: "↔";
  font-size: 1rem;
  line-height: 1;
}

/* Modal antes / después */
.antes-despues-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.antes-despues-modal[hidden] {
  display: none;
}

.antes-despues-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 40, 0.72);
  backdrop-filter: blur(4px);
}

.antes-despues-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52rem;
  max-height: min(92vh, 820px);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(11, 23, 40, 0.3);
  overflow: hidden;
}

.antes-despues-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.antes-despues-modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0b1728;
}

.antes-despues-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.antes-despues-modal-close:hover {
  color: #0b1728;
  background: #f3f4f6;
}

.antes-despues-modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow: auto;
}

.compare-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0094a8;
}

.compare-container {
  position: relative;
  width: 100%;
  height: min(56vw, 420px);
  max-height: 60vh;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(11, 23, 40, 0.15);
  user-select: none;
  touch-action: pan-y;
}

.compare-img-abs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.compare-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  z-index: 1;
  overflow: hidden;
  border-right: 3px solid #fff;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  will-change: width;
}

.compare-slider-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.compare-container input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: ew-resize;
  margin: 0;
  opacity: 0;
  -webkit-appearance: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
  will-change: left;
}

.compare-handle::after {
  content: "↔";
  color: #0b1728;
  font-size: 22px;
  font-weight: bold;
}

.compare-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
}

body.antes-despues-modal-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .compare-container {
    height: 420px;
  }
}

/* Sección Marcas */
.marcas-section {
  background-color: #fff;
}

.marcas-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.marcas-intro {
  max-width: 42rem;
}

.marcas-logos {
  display: block;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 5.25rem;
  }
}

/* Logo en footer sobre fondo oscuro */
.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Pie de página */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 55% at 10% 18%, rgba(157, 212, 239, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 12%, rgba(255, 179, 19, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 25% 8%, rgba(184, 169, 212, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 25%, rgba(107, 191, 89, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #0D1F35 0%, rgba(11, 23, 40, 0.85) 38%, transparent 62%);
}

.site-footer > .max-w-7xl {
  position: relative;
  z-index: 2;
  padding-top: 2.5rem;
}

.footer-swatch-strip {
  display: flex;
  width: 100%;
  height: 4.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.footer-swatch {
  flex: 1;
  min-width: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c) 42%, #ffffff) 0%,
    var(--c) 42%,
    color-mix(in srgb, var(--c) 72%, #000000) 100%
  );
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.06);
}

.footer-swatch:last-child {
  box-shadow: none;
}

@media (min-width: 640px) {
  .footer-swatch-strip {
    height: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-swatch-strip {
    height: 6.5rem;
  }

  .site-footer > .max-w-7xl {
    padding-top: 2rem;
  }
}

/* Ilustración inferior del footer */
.footer-bottom-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 16rem;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 88%, transparent 100%);
  mask-image: linear-gradient(to top, #000 88%, transparent 100%);
}

.footer-bottom-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 45% 100% at 0% 100%, rgba(157, 212, 239, 0.1) 0%, transparent 72%),
    radial-gradient(ellipse 40% 95% at 100% 90%, rgba(255, 179, 19, 0.08) 0%, transparent 68%),
    radial-gradient(ellipse 35% 85% at 92% 100%, rgba(91, 196, 184, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.footer-bottom-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 23, 40, 0.5);
  pointer-events: none;
}

.footer-bottom-art img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: invert(1) brightness(1.1) contrast(0.82);
  opacity: 0.22;
}

@media (min-width: 640px) {
  .footer-bottom-art {
    height: 20rem;
  }

  .footer-bottom-art::after {
    background: rgba(11, 23, 40, 0.48);
  }

  .footer-bottom-art img {
    opacity: 0.24;
  }
}

@media (min-width: 1024px) {
  .footer-bottom-art {
    height: 24rem;
  }

  .footer-bottom-art::after {
    background: rgba(11, 23, 40, 0.45);
  }

  .footer-bottom-art img {
    opacity: 0.26;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-inner {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.footer-location {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 13rem;
  height: 13rem;
  flex-shrink: 0;
  border: 1px solid rgba(11, 23, 40, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-location:hover {
  border-color: rgba(0, 148, 168, 0.55);
}

.footer-location-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-location-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: scale(1.02);
}

.footer-location-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
}

.footer-location-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem;
  width: 100%;
  height: 100%;
  text-align: center;
}

.footer-location-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #FFB313;
  border: none;
  color: #0B1728;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 179, 19, 0.35);
}

.footer-location-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.footer-location-text {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  line-height: 1.2;
}

.footer-location-label,
.footer-location-city,
.footer-location-region {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(255, 255, 255, 1),
    -1px 0 2px rgba(255, 255, 255, 0.9),
    1px 0 2px rgba(255, 255, 255, 0.9);
}

.footer-location-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7280;
}

.footer-location-city {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0B1728;
}

.footer-location-region {
  font-size: 0.875rem;
  color: #374151;
}

.footer-copyright {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .footer-copyright {
    font-size: 0.6875rem;
  }
}

@media (max-width: 1023px) {
  .footer-location {
    width: 10.5rem;
    height: 10.5rem;
  }

  .footer-location-content {
    gap: 0.5rem;
    padding: 0.875rem;
  }

  .footer-location-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer-location-icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .footer-location-city {
    font-size: 1rem;
  }

  .footer-location-region {
    font-size: 0.8125rem;
  }

  .footer-copyright {
    white-space: normal;
    line-height: 1.5;
    padding-inline: 0.75rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-location {
    width: 11.5rem;
    height: 11.5rem;
  }
}

/* Header */
.site-header {
  background-color: #ffffff;
}

.header-inner {
  min-height: var(--header-height);
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

@media (min-width: 640px) {
  .header-brand {
    gap: 0.25rem;
  }
}

.header-logo {
  height: 3rem;
}

@media (min-width: 640px) {
  .header-logo {
    height: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .header-logo {
    height: 4.25rem;
  }
}

/* Móvil/tablet: solo presupuesto + menú (sin teléfono) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-phone {
  display: none;
}

.header-actions-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-cta {
  font-size: 0.6875rem;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

#menu-toggle {
  padding: 0.375rem;
}

@media (min-width: 380px) {
  .header-cta {
    font-size: 0.75rem;
    padding: 0.4375rem 0.875rem;
  }
}

@media (min-width: 480px) {
  .header-cta {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
}

/* Desktop: teléfono + presupuesto en fila */
@media (min-width: 1024px) {
  .header-actions {
    gap: 1rem;
  }

  .header-phone {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .header-phone-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .header-actions-row {
    display: contents;
  }

  .header-cta {
    font-size: 1rem;
    padding: 0.625rem 1.5rem;
  }

  #menu-toggle {
    padding: 0.5rem;
  }
}

/* Menú móvil */
#mobile-menu {
  top: var(--header-height);
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(11, 23, 40, 0.12);
}

#mobile-menu.is-open {
  display: block;
}

#menu-toggle.is-active svg line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.is-active svg line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.is-active svg line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

#menu-toggle svg line {
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Formulario: mensaje de envío */
/* Botón flotante WhatsApp */
.whatsapp-float {
  right: 1.5rem;
  bottom: 1.5rem;
  left: auto;
  background-color: #25D366;
  color: #ffffff;
}

.whatsapp-float:hover {
  background-color: #20BD5A;
}

@media (max-width: 1023px) {
  .whatsapp-float {
    /* Más separación sobre la barra fija inferior */
    bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-sticky-bar {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  text-align: center;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  text-align: center;
}

/* Adjuntos del formulario */
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-upload-area {
  position: relative;
}

.file-upload-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  background: #f9fafb;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload-trigger:hover {
  border-color: #0094A8;
  background: #f0fdfa;
}

.file-upload-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.file-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.file-list-item-info {
  min-width: 0;
  flex: 1;
}

.file-list-item-name {
  display: block;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list-item-size {
  color: #6b7280;
  font-size: 0.75rem;
}

.file-list-item-remove {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.25rem;
}

.file-list-item-remove:hover {
  background: #fee2e2;
}

.upload-progress-wrap {
  padding: 0.25rem 0;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  color: #4b5563;
}

.upload-progress-track {
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0094A8, #007A8C);
  border-radius: 9999px;
  transition: width 0.15s ease;
}

#contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select:invalid {
  color: #9ca3af;
}

.form-contact-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.form-field-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
}

.field-error-msg {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #dc2626;
  line-height: 1.35;
}

/* Formulario: espaciado cómodo en móvil/tablet */
.contact-form-aside {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.contact-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-form .form-input {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.contact-form .form-contact-hint {
  margin-top: 0.375rem;
}

.contact-form .file-upload-hint {
  margin-top: 0.5rem;
}

.contact-form .file-upload-trigger {
  padding: 0.875rem 1rem;
}

.contact-form .file-list {
  margin-top: 0.75rem;
}

.contact-form #contact-submit {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 0;
}

@media (min-width: 1024px) {
  .contact-form {
    gap: 0.625rem;
  }

  .contact-form .form-label {
    margin-bottom: 0.125rem;
  }

  .contact-form .form-input {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .contact-form .form-contact-hint {
    margin-top: 0.25rem;
  }

  .contact-form .file-upload-hint {
    margin-top: 0.375rem;
  }

  .contact-form .file-upload-trigger {
    padding: 0.625rem 0.875rem;
  }

  .contact-form .file-list {
    margin-top: 0.5rem;
  }

  .contact-form #contact-submit {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-top: 0.25rem;
  }
}

/* Modal política de privacidad */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 40, 0.65);
  backdrop-filter: blur(4px);
}

.privacy-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 42rem;
  max-height: min(85vh, 720px);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(11, 23, 40, 0.25);
  overflow: hidden;
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}

.privacy-modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.privacy-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.privacy-modal-close:hover {
  background: #e5e7eb;
}

.privacy-modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.privacy-modal-body h1 {
  display: none;
}

.privacy-modal-body .updated {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.privacy-modal-body h2 {
  margin: 1.25rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
}

.privacy-modal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.privacy-modal-body p,
.privacy-modal-body li {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #374151;
}

.privacy-modal-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.125rem;
}

.privacy-modal-body a {
  color: var(--color-cyan);
}

.privacy-modal-loading {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 2rem 0;
}

body.privacy-modal-open {
  overflow: hidden;
}

/* Banner cookies (Consent Mode v2) */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 23, 40, 0.45);
  backdrop-filter: blur(2px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-panel {
  width: 100%;
  max-width: 42rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(11, 23, 40, 0.18);
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .cookie-banner {
    align-items: center;
    padding: 1.5rem;
  }

  .cookie-banner-panel {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

.cookie-banner-title {
  margin: 0 0 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.cookie-banner-text {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.cookie-banner-text a {
  color: var(--color-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
}

.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-btn-primary {
  background: var(--color-navy);
  color: #fff;
}

.cookie-btn-primary:hover {
  background: var(--color-cyan);
}

.cookie-btn-secondary {
  background: #fff;
  color: var(--color-navy);
  border: 1px solid #d1d5db;
}

.cookie-btn-secondary:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.cookie-btn-ghost {
  background: transparent;
  color: #6b7280;
}

.cookie-btn-ghost:hover {
  color: var(--color-navy);
}

.cookie-pref-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.cookie-pref-item--locked {
  opacity: 0.92;
}

.cookie-pref-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cookie-pref-info strong,
.cookie-pref-info label {
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.cookie-pref-info span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.cookie-pref-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.cookie-pref-toggle {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-cyan);
  cursor: pointer;
}

body.cookie-banner-open {
  overflow: hidden;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-left: 0.25rem;
}

.footer-legal-link {
  color: #6b7280;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-link:hover {
  color: var(--color-cyan);
}

.footer-legal-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.footer-legal-sep {
  color: #9ca3af;
  font-size: 0.8125rem;
}

@media (max-width: 639px) {
  .cookie-banner-actions .cookie-btn {
    flex: 1 1 calc(50% - 0.3125rem);
    min-width: 7rem;
    text-align: center;
  }

  .cookie-banner-actions .cookie-btn-primary {
    flex-basis: 100%;
  }
}

