/* ==========================================================================
   RELLAMUR SL. - Estilos Corporativos Oficiales
   Carpintería Metálica Molina de Segura y Alrededores
   ========================================================================== */

:root {
  /* Paleta cromática principal */
  --bg-primary: #080d12;
  --bg-secondary: #0e1620;
  --bg-card: #131e2b;
  --bg-card-hover: #192738;
  --bg-card-border: rgba(56, 189, 248, 0.18);
  --bg-card-border-hover: rgba(56, 189, 248, 0.45);

  --accent-cyan: #00a3ff;
  --accent-cyan-glow: rgba(0, 163, 255, 0.35);
  --accent-blue: #0284c7;
  --accent-blue-dark: #0369a1;
  --accent-blue-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);

  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1ebd5a;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #16a34a 100%);

  /* Neutrales */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 163, 255, 0.3);

  /* Superficies claras de contraste */
  --surface-light: #ffffff;
  --surface-light-text: #0f172a;
  --surface-light-sub: #475569;

  /* Sombras y efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 163, 255, 0.2);
  --shadow-btn: 0 4px 15px rgba(0, 0, 0, 0.35);

  /* Tipografías */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Montserrat', sans-serif;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Contenedor centralizado para emular el mockup móvil y expandirse con elegancia en desktop */
.site-wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* ==========================================================================
   TOP BAR / HEADER
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, #070b0f 0%, #0c131a 100%);
  padding: 1rem 1.25rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 163, 255, 0.4));
  transition: transform var(--transition-fast);
}

.brand-logo-svg:hover {
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-title .brand-accent {
  color: var(--accent-cyan);
  font-weight: 900;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.header-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.badge-item {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1.2;
}

.badges-accent-line {
  width: 44px;
  height: 2.5px;
  background-color: var(--accent-cyan);
  margin-top: 4px;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   NAVIGATION BAR (TABS / MENU)
   ========================================================================== */
.site-nav {
  background: #091017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 1rem;
  position: sticky;
  top: 75px;
  z-index: 90;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  min-width: max-content;
}

.nav-link-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: #ffffff;
  background-color: rgba(2, 132, 199, 0.18);
  border-color: rgba(56, 189, 248, 0.3);
}

.nav-link-btn.active {
  background-color: rgba(0, 163, 255, 0.25);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.25);
}

.nav-badge-new {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #060a0f;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.88);
}

/* Gradient overlay que reproduce fielmente el diseño de la imagen */
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(7, 12, 18, 0.96) 0%,
    rgba(7, 12, 18, 0.88) 45%,
    rgba(7, 12, 18, 0.45) 75%,
    rgba(7, 12, 18, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 3.25rem 2rem 2rem 2rem;
  max-width: 650px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 0.9rem;
}

.hero-title .title-line-1 {
  color: #ffffff;
  display: block;
}

.hero-title .title-line-accent {
  color: var(--accent-cyan);
  display: block;
  text-shadow: 0 0 25px rgba(0, 163, 255, 0.45);
}

.hero-title .title-line-3 {
  color: #ffffff;
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.hero-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.45;
  max-width: 520px;
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-btn);
}

.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-whatsapp {
  background: var(--whatsapp-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-cta-whatsapp img {
  width: 25px !important;
  height: 25px !important;
  object-fit: contain;
}

.btn-cta-call {
  background: var(--accent-blue-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
}

.btn-icon-svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Bottom hero badge */
.hero-bottom-bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem 1rem 1rem;
}

.hero-tag-badge {
  background: rgba(10, 18, 26, 0.88);
  border: 1px solid rgba(0, 163, 255, 0.4);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f1f5f9;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tag-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   VALUE PROPOSITIONS (BARRA BLANCA DE GARANTÍAS)
   ========================================================================== */
.values-bar {
  background-color: var(--surface-light);
  color: var(--surface-light-text);
  padding: 1.25rem 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.5rem;
  border-right: 1px solid #e2e8f0;
}

.value-item:last-child {
  border-right: none;
}

.value-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

/* ==========================================================================
   SECTION HEADERS (DIVISORES CON LÍNEAS)
   ========================================================================== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.25rem 1rem 1.25rem 1rem;
  text-align: center;
}

.divider-line {
  flex: 1;
  max-width: 120px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), var(--accent-cyan));
}

.divider-line.right {
  background: linear-gradient(90deg, var(--accent-cyan), rgba(56, 189, 248, 0.4), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #cbd5e1;
  text-transform: uppercase;
}

/* ==========================================================================
   SERVICES SECTION (NUESTROS SERVICIOS)
   ========================================================================== */
.services-section {
  padding: 0 1rem 1.5rem 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.service-card {
  background: linear-gradient(180deg, #101923 0%, #0c131a 100%);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.85rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  min-height: 205px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 8px 25px rgba(0, 163, 255, 0.2);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #e2e8f0;
}

.service-icon-wrap svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.btn-service-quote {
  width: 100%;
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all var(--transition-fast);
  text-align: center;
  letter-spacing: 0.2px;
}

.btn-service-quote:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.4);
}

/* ==========================================================================
   REAL WORKS GALLERY (TRABAJOS REALES)
   ========================================================================== */
.gallery-section {
  padding: 0 1rem 2rem 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.work-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #0b1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.work-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(0, 163, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 163, 255, 0.2);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-img {
  transform: scale(1.08);
}

.work-label-pill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 16, 0.85) 35%, rgba(6, 11, 16, 0.98) 100%);
  padding: 1.25rem 0.65rem 0.5rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-label-pill .zoom-icon {
  opacity: 0;
  transform: translateX(5px);
  transition: all var(--transition-fast);
  color: var(--accent-cyan);
}

.work-card:hover .zoom-icon {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   RECENT PROJECTS TAB / SECTION (PROYECTOS RECIENTES)
   ========================================================================== */
.recent-projects-section {
  padding: 0 1rem 2.5rem 1rem;
  background: linear-gradient(180deg, rgba(8, 13, 18, 0) 0%, rgba(14, 22, 32, 0.6) 20%, rgba(14, 22, 32, 0.6) 90%, rgba(8, 13, 18, 0) 100%);
}

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 25, 36, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.projects-categories {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: var(--accent-blue-gradient);
  color: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(0, 163, 255, 0.3);
}

.projects-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-add-project {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.btn-add-project:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-backup {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.48rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-backup:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Botón Ver Más Proyectos */
.projects-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(3, 105, 161, 0.35) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 163, 255, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-load-more:hover {
  background: var(--accent-blue-gradient);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 163, 255, 0.45);
}

.btn-load-more svg {
  transition: transform var(--transition-fast);
}

.btn-load-more.expanded svg {
  transform: rotate(180deg);
}

/* Tarjetas de proyectos recientes */
.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-item-card {
  background: linear-gradient(180deg, #121c27 0%, #0d151e 100%);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 163, 255, 0.15);
}

.project-thumb-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #080d12;
}

.project-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-item-card:hover .project-thumb-box img {
  transform: scale(1.05);
}

.project-meta-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-category {
  background: rgba(3, 105, 161, 0.85);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-location {
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-details-box {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-item-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.project-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-ask {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-card-ask:hover {
  background: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.35);
}

.btn-card-delete {
  color: #ef4444;
  font-size: 0.75rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.btn-card-delete:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   BOTTOM CTA BANNER & FOOTER
   ========================================================================== */
.bottom-cta-banner {
  background: linear-gradient(180deg, #070d13 0%, #031424 50%, #051a2e 100%);
  padding: 3rem 1.5rem 2.25rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  position: relative;
  overflow: hidden;
}

.bottom-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 163, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
}

.cta-subtext {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.bottom-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #94a3b8;
  text-transform: uppercase;
}

.bottom-badges-row .badge-left {
  text-align: left;
}

.bottom-badges-row .badge-right {
  text-align: right;
  color: #cbd5e1;
}

/* Información de empresa y pie */
.site-footer {
  background-color: #04080c;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 380px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-list li a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-list li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FLOATING QUICK CONTACT BUTTONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
  color: #ffffff;
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  background: var(--whatsapp-gradient);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}

.float-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.float-call {
  background: var(--accent-blue-gradient);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.45);
}

/* ==========================================================================
   MODALS & LIGHTBOX (VISOR DE FOTOS Y FORMULARIO DE PROYECTO)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(4, 8, 13, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #111b26;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md), 0 0 35px rgba(0, 163, 255, 0.15);
  position: relative;
  padding: 1.75rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.modal-header-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.modal-header-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Estilos de inputs en el modal de subir proyectos */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #0b1219;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.25);
}

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

.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(0, 163, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drop-zone:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 163, 255, 0.08);
}

.drop-zone-text {
  font-size: 0.82rem;
  color: #94a3b8;
}

.drop-preview-img {
  max-height: 140px;
  margin: 0.75rem auto 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-secondary {
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-primary {
  padding: 0.65rem 1.5rem;
  background: var(--accent-blue-gradient);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

/* Lightbox de fotos */
.lightbox-dialog {
  max-width: 820px;
  padding: 1rem;
  background: #080d13;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.lightbox-img-wrap img {
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

/* En dispositivos móviles (hasta 640px) emula al milímetro el mockup original */
@media (max-width: 640px) {
  .hero-section {
    min-height: 440px;
  }

  .hero-content {
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .btn-cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    gap: 0.65rem;
  }

  .btn-cta-whatsapp img {
    width: 22px !important;
    height: 22px !important;
  }

  .btn-icon-svg {
    width: 22px;
    height: 22px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-badges {
    display: none;
    /* En móvil muy compacto se simplifica para dar prioridad al logo */
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .value-item {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.65rem;
  }

  .value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

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

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

  .recent-projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bottom-badges-row {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .bottom-badges-row .badge-left,
  .bottom-badges-row .badge-right {
    text-align: center;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-section {
    min-height: 540px;
  }

  .hero-content {
    padding: 3rem 2rem 2rem 2rem;
  }

  .hero-title {
    font-size: 3.8rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .btn-cta {
    padding: 0.95rem 1.85rem;
    font-size: 1.2rem;
  }

  .btn-cta-whatsapp img {
    width: 30px !important;
    height: 30px !important;
  }

  .btn-icon-svg {
    width: 28px;
    height: 28px;
  }

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

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