/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--blue-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--blue-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--blue-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Grid Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 0.35em 1em;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(61, 132, 245, 0.1);
  border: var(--border-gold-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  color: var(--gold);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-description {
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), var(--shadow-md);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(61, 132, 245, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.btn-text svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-text:hover {
  color: var(--gold-light);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* Visibility classes */
.desktop-only {
  display: none;
}
.mobile-only {
  display: flex;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: var(--border-glass);
  transition: all var(--transition-normal);
}

.navbar-scrolled {
  padding: 0.6rem 0;
  background: var(--nav-bg);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  transition: padding var(--transition-normal);
}

.navbar-scrolled .navbar-container {
  padding: 0.5rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-svg {
  width: 38px;
  height: 38px;
}

.logo-img {
  object-fit: contain;
}

.navbar .logo-img {
  width: 38px; /* default for mobile */
  height: 38px;
}

.footer .logo-img {
  width: 51px; /* +35% (from 38px) */
  height: 51px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.20rem; /* default for mobile */
  letter-spacing: 1px;
}

.nav-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--blue-dark);
  border-bottom: var(--border-glass);
  padding: 2rem 1.5rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all var(--transition-normal);
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 9.5rem 0 5rem 0;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(100px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(61, 132, 245, 0.08);
  top: 10%;
  right: 5%;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(47, 42, 35, 0.3);
  bottom: 0;
  left: -10%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: var(--border-glass);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-graphics {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.building-vector {
  width: 80%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-lg);
  background-color: transparent;
  box-shadow: none;
}

.hero-logo-img {
  transform: translateX(-16px);
}

.graphics-card {
  position: absolute;
  background: var(--card-bg-solid);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-glass);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  left: -2%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 10%;
  right: -2%;
  animation-delay: 2s;
}

.card-icon {
  background: rgba(61, 132, 245, 0.15);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.card-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  padding: 6rem 0;
  background-color: var(--blue-slate);
  position: relative;
}

.services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--blue-dark), transparent);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--blue-dark);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Individual card hover styling for a unique and professional glow */
.service-card[data-service="administrativa"]:hover {
  border-color: rgba(61, 132, 245, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(61, 132, 245, 0.25);
}
.service-card[data-service="legal"]:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(139, 92, 246, 0.25);
}
.service-card[data-service="contable"]:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.25);
}
.service-card[data-service="cobranza"]:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(244, 63, 94, 0.25);
}
.service-card[data-service="piscinas"]:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(6, 182, 212, 0.25);
}
.service-card[data-service="jardineria"]:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(34, 197, 94, 0.25);
}

.service-icon {
  background: rgba(61, 132, 245, 0.08);
  color: var(--gold);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(61, 132, 245, 0.15);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gold-gradient);
  color: var(--blue-dark);
  box-shadow: var(--shadow-gold);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-preview-list {
  border-top: var(--border-glass);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-preview-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-preview-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

.btn-detail {
  align-self: flex-start;
  margin-top: auto;
}

.service-card-image {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: var(--border-glass);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

/* ==========================================================================
   METHODOLOGY SECTION
   ========================================================================== */
.methodology {
  padding: 6rem 0;
  background-color: var(--blue-dark);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(61, 132, 245, 0.1) 100%);
}

.timeline-step {
  position: relative;
}

.step-number {
  position: absolute;
  left: -2.35rem;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-dark);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 10px rgba(30, 26, 21, 1);
}

.step-content {
  background: var(--card-gradient);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.step-content:hover {
  border-color: rgba(61, 132, 245, 0.2);
  transform: translateX(4px);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--gold);
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   PHILOSOPHY SECTION
   ========================================================================== */
.philosophy {
  padding: 6rem 0;
  background-color: var(--blue-slate);
  position: relative;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, var(--blue-dark), transparent);
  pointer-events: none;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-main h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.philosophy-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.philosophy-quote {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.puntos-clave-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.key-card {
  background: var(--key-card-bg);
  border: var(--border-glass);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.key-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 132, 245, 0.2);
  background: var(--key-card-hover-bg);
}

.key-icon {
  color: var(--gold);
  margin-bottom: 1rem;
}

.key-icon svg {
  width: 24px;
  height: 24px;
}

.key-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.key-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CLIENTS SECTION
   ========================================================================== */
.clients {
  padding: 6rem 0;
  background-color: var(--blue-dark);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.client-card {
  flex: 0 1 calc(33.333% - 1.5rem);
  min-width: 260px;
  max-width: 320px;
  background: var(--card-gradient);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: scale(1.02);
  border-color: rgba(61, 132, 245, 0.3);
  box-shadow: var(--shadow-md);
}

.client-logo-wrapper {
  background: var(--white);
  border: var(--border-glass);
  width: 100%;
  max-width: 160px;
  height: 90px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.client-card:hover .client-logo-wrapper {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 4px 15px rgba(61, 132, 245, 0.15);
}

.client-card:hover .client-logo-img {
  transform: scale(1.05);
}

.client-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.client-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact {
  padding: 6rem 0;
  background-color: var(--blue-slate);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, var(--blue-dark), transparent);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-link {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-link:hover .info-icon {
  background: var(--gold-gradient);
  color: var(--blue-dark);
}

.info-link:hover h4 {
  color: var(--gold);
}

.info-icon {
  background: var(--avatar-bg);
  border: var(--border-glass);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-item h4, .info-link h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

.info-item p, .info-link p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.schedule-notice {
  background: var(--key-card-bg);
  border: var(--border-glass);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.schedule-notice svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.schedule-notice span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--blue-dark);
  border: var(--border-glass);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(255,255,255,0.7)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-group select option {
  background-color: var(--blue-dark);
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(61, 132, 245, 0.15);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.4rem;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

/* Form Loader / Success Card */
.form-success-card, .form-error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon-wrapper {
  background: rgba(20, 150, 80, 0.15);
  color: var(--success);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(20, 150, 80, 0.2);
}

.success-icon-wrapper svg {
  width: 34px;
  height: 34px;
}

.error-icon-wrapper {
  background: rgba(220, 60, 60, 0.15);
  color: var(--error);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(220, 60, 60, 0.2);
}

.error-icon-wrapper svg {
  width: 34px;
  height: 34px;
}

.form-success-card h3, .form-error-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.form-success-card p, .form-error-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 320px;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(30, 26, 21, 0.3);
  border-top-color: var(--blue-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MODAL DIALOG SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(15, 12, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--blue-dark);
  border: var(--border-glass);
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--gold);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: var(--border-glass);
  padding-bottom: 1.25rem;
}

.modal-icon-wrapper {
  color: var(--gold);
  background: rgba(61, 132, 245, 0.08);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.modal-header h3 {
  font-size: 1.4rem;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.modal-body p {
  margin-bottom: 1.25rem;
}

.modal-list-title {
  font-family: var(--font-title);
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.modal-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.modal-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.modal-feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: var(--border-glass);
  padding-top: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--blue-dark);
  border-top: var(--border-glass);
  padding: 5rem 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  margin-bottom: 1.25rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-links h4, .footer-contact-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 2px;
}

.footer-contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-contact-info strong {
  color: var(--text-light);
}

.footer-contact-info a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: var(--border-glass);
  padding: 1.5rem 0;
  background: rgba(15, 12, 9, 0.3);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Small devices (phones landscape, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-actions {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form-wrapper {
    padding: 3rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.6rem;
  }
  
  .desktop-only {
    display: inline-flex;
  }
  
  .mobile-only {
    display: none !important;
  }

  /* Hamburger removal for desktop */
  .hamburger-btn {
    display: none;
  }

  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    background: none;
    border-bottom: none;
    padding: 0;
    width: auto;
    max-height: none;
    overflow-y: visible;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  /* Hero adjustments */
  .hero {
    padding: 11rem 0 7rem 0;
  }
  
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-subtitle {
    margin-left: 0;
  }
  
  .hero-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
  
  .stat-item {
    align-items: flex-start;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline */
  .timeline {
    padding-left: 0;
    align-items: center;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
  }
  
  .timeline-step:nth-child(even) .step-content {
    grid-column: 2;
  }
  
  .timeline-step:nth-child(odd) .step-content {
    grid-column: 1;
  }
  
  .step-number {
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -14px;
  }

  /* Philosophy */
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Displace floating cards further on desktop to fully reveal the logo */
  .card-1 {
    top: 5%;
    left: -25%;
  }

  .card-2 {
    bottom: 5%;
    right: -10%;
  }

  /* Scale logo size and font size for desktop */
  .navbar .logo-img {
    width: 44px;
    height: 44px;
  }

  .logo-text {
    font-size: 1.35rem;
  }
}

/* Large devices (large desktops, 1024px and up) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-container {
    gap: 5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .puntos-clave-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON STYLES
   ========================================================================== */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0 !important;
  min-width: 38px !important;
  min-height: 38px !important;
  overflow: hidden !important;
}

.theme-toggle-btn:hover {
  background: rgba(61, 132, 245, 0.1);
  transform: scale(1.08);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  stroke-width: 2px;
}

/* Toggle visibility based on data-theme */
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
/* If no data-theme (default is dark) */
:not([data-theme="light"]) .sun-icon {
  display: block;
}
:not([data-theme="light"]) .moon-icon {
  display: none;
}

/* Override light arrow for select tag in light mode */
[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(10,15,26,0.7)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
}

/* In light mode, the Hero logo keeps a soft faded white background */
[data-theme="light"] .building-vector {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 72%);
  box-shadow: none;
}

/* Force dark footer for premium visual contrast */
.footer {
  background-color: hsl(220, 40%, 10%) !important;
  color: hsl(210, 20%, 98%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.footer .logo-text {
  color: hsl(210, 20%, 98%) !important;
}
.footer-desc, 
.footer-links a, 
.footer-contact-info p,
.footer-contact-info strong {
  color: hsl(210, 15%, 75%) !important;
}
.footer-links a:hover {
  color: var(--gold) !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(15, 12, 9, 0.5) !important;
  color: hsl(210, 10%, 60%) !important;
}

/* Estilos de información y créditos de diseño (Domus Habitat) */
.designer-info {
  text-align: center;
  margin-top: 0.75rem;
}
.designer-sub {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}
.designer-contact {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}
.designer-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.designer-link:hover {
  color: var(--gold) !important;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .designer-info {
    text-align: right;
    margin-top: 0;
  }
}

/* Botones de redes sociales en el footer de Forms Consulting */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: hsl(210, 15%, 75%) !important;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold-gradient) !important;
  color: var(--blue-dark) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

/* Botón Flotante de WhatsApp para Contacto de Domus Habitat */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}
