/* ==========================================================================
   DESIGN SYSTEM - HIGH FIDELITY DESIGN
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Color System (Vibrant Blue & Dark Contrasts) */
  --brand-blue: #0A5CFF;          /* Corporate Royal Blue */
  --brand-blue-hover: #0046d5;
  --brand-blue-light: rgba(10, 92, 255, 0.05);
  --brand-blue-glow: rgba(10, 92, 255, 0.35);

  /* Light Theme Variables (Clean, white & soft gradients) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-title: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-focus: #0A5CFF;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 15px 40px rgba(10, 92, 255, 0.06);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --max-width: 1200px;
  --grid-gap: 30px;
  --transition-speed: 0.35s;
}

/* Dark Theme Variables (Deep night mode with tech glows) */
[data-theme="dark"] {
  --bg-body: #07090e;
  --bg-card: #10141f;
  --bg-alt: #161c2c;
  
  --text-title: #f8fafc;
  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-color: #1e293b;
  --border-focus: #0A5CFF;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   BILINGUAL SYSTEM SWITCHING
   ========================================================================== */
html:not([lang="en"]) .lang-en {
  display: none !important;
}
html[lang="en"] .lang-es {
  display: none !important;
}

/* ==========================================================================
   CSS RESET & BASE LAYOUT
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  position: relative;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Container & Grids */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Sections */
.section-padding {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  max-width: 650px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-title) 30%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

p {
  color: var(--text-main);
  margin-bottom: 16px;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE ELEMENTS & BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-blue-glow);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--brand-blue-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-title);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--brand-blue-light);
  border: 1px solid rgba(10, 92, 255, 0.15);
  color: var(--brand-blue);
  padding: 4px 10px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER & THEME TOGGLE
   ========================================================================== */
.header-wireframe {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-speed);
}

[data-theme="dark"] .header-wireframe {
  background-color: rgba(7, 9, 14, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Envoltorio del menú de navegación en escritorio */
.header-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 40px;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger-btn {
  display: none;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.logo-container img {
  height: 38px;
  object-fit: contain;
  transition: transform var(--transition-speed);
}

.logo-container img:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  transition: all var(--transition-speed);
  position: relative;
  padding: 5px 0;
}

/* Illuminated blue indicator on hover */
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue);
  text-shadow: 0 0 10px var(--brand-blue-glow);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-blue);
  transition: width var(--transition-speed) ease;
  box-shadow: 0 0 8px var(--brand-blue);
}

.mobile-quote-container {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Currency Switcher in Header */
.currency-switcher {
  display: inline-flex;
  align-items: center;
}

.mobile-currency-container {
  display: none;
}

.desktop-only {
  display: inline-flex;
}

.currency-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-title);
  transition: all var(--transition-speed);
}

.currency-btn:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
}

.currency-label {
  transition: color var(--transition-speed);
}

.currency-label.active {
  color: var(--brand-blue);
}

.currency-label:not(.active) {
  color: var(--text-muted);
}

.currency-divider {
  color: var(--border-color);
  margin: 0 2px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  transition: all var(--transition-speed);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Hide sun in light theme, hide moon in dark theme */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.sun-icon { display: none; }
.moon-icon { display: block; }

/* ==========================================================================
   HERO SLIDESHOW SECTION
   ========================================================================== */
.hero-slideshow-section {
  position: relative;
  height: 80vh;
  min-height: 550px;
  width: 100%;
  overflow: hidden;
  background-color: #07090e;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
}

.hero-slide.active .slide-bg {
  transform: scale(1.05);
}

.slide-content-container {
  position: relative;
  z-index: 3;
  width: 100%;
  pointer-events: none;
}

.slide-text {
  max-width: 650px;
  color: #ffffff !important;
  pointer-events: auto;
}

.slide-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  line-height: 1.25;
}

.slide-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slide-text .badge {
  color: #ffffff !important;
  background-color: rgba(10, 92, 255, 0.25) !important;
  border-color: rgba(10, 92, 255, 0.5) !important;
  text-shadow: none;
}

.slide-text .btn-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: transparent !important;
}

.slide-text .btn-outline:hover {
  border-color: var(--brand-blue) !important;
  background-color: var(--brand-blue-light) !important;
  color: var(--brand-blue) !important;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Arrows Navigation */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.slideshow-arrow:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue-glow);
}

.slideshow-arrow.prev {
  left: 24px;
}

.slideshow-arrow.next {
  right: 24px;
}

/* Dots Indicators */
.slideshow-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dots .dot:hover,
.slideshow-dots .dot.active {
  background: var(--brand-blue);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--brand-blue);
}

@media (max-width: 768px) {
  .hero-slideshow-section {
    height: 70vh;
  }
  .slide-text h2 {
    font-size: 2rem;
  }
  .slide-text p {
    font-size: 0.95rem;
  }
  .slideshow-arrow {
    display: none; /* Hide arrows on small mobile devices for clean space */
  }
}

/* ==========================================================================
   ABOUT & TIMELINE
   ========================================================================== */
.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-body);
  border: 3px solid var(--border-color);
  transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-marker {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Interactive skills labels */
.tools-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tool-checkbox {
  display: none;
}

.tool-label {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: var(--bg-card);
  transition: all var(--transition-speed);
  user-select: none;
}

.tool-label:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.tool-checkbox:checked + .tool-label {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px var(--brand-blue-glow);
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.services-section {
  background-color: var(--bg-alt);
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-speed);
}

.service-card:hover .service-icon-box {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px var(--brand-blue-glow);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-price {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.service-price-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* ==========================================================================
   PORTFOLIO GALLERY
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-speed);
}

.filter-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-btn.active {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--brand-blue-glow);
}

.portfolio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.portfolio-img-box {
  height: 230px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-alt);
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 24px;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.portfolio-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform var(--transition-speed);
}

.portfolio-link:hover {
  transform: translateX(3px);
}

.portfolio-item.hidden {
  display: none;
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 22px;
  width: 100%;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-title);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-body);
  color: var(--text-title);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.15);
  background-color: var(--bg-card);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.success-msg {
  display: none;
  background-color: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.25);
  color: #28a745;
  padding: 14px;
  border-radius: 6px;
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.05);
}

.contact-info-list {
  list-style: none;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.contact-info-item:hover .contact-info-icon {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px var(--brand-blue-glow);
}

.contact-info-content h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-info-content p {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-info-content a {
  color: var(--text-title);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.contact-info-content a:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wireframe {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-nav-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-speed);
}

.social-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  box-shadow: 0 0 10px var(--brand-blue-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  
  .grid-12 {
    grid-template-columns: repeat(6, 1fr);
  }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 6;
  }
  
  .hero-avatar-container {
    margin-top: 40px;
  }
  
  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 1;
  }
  
  .nav-links {
    display: none; /* Collapsed on mobile header, can trigger via CSS toggle in future if requested */
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-nav {
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PROFILE AVATAR ANIMATIONS
   ========================================================================== */
@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: 0.9; }
  50%  { transform: scale(1.06); opacity: 0.5; }
  100% { transform: scale(1);    opacity: 0.9; }
}

/* Full-width tools card inner flex wrap */
.col-12 .tools-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* ==========================================================================
   WORDPRESS ADMIN BAR ADJUSTMENT (Logged-in users)
   ========================================================================== */
.admin-bar .header-wireframe {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .header-wireframe {
    top: 46px !important;
  }
}

/* ==========================================================================
   WORDPRESS / ASTRA THEME COMPATIBILITY OVERRIDES
   ========================================================================== */
html,
body,
body.ast-plain-container,
body.ast-separate-container,
body.page-template,
body.page {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
}

/* Ensure theme containers don't cover our background */
.site,
#page,
#content,
#primary,
.ast-container,
.ast-plain-container,
.ast-separate-container {
  background-color: transparent !important;
}

/* Reset theme list margins in header/footer navigation */
.header-container ul,
.header-container li,
.footer-grid ul,
.footer-grid li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.nav-links {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 32px !important;
  align-items: center !important;
}

.nav-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style-type: none !important;
}

/* Force contact info lists and items to reset any theme list styles, margins, and paddings */
ul.contact-info-list,
li.contact-info-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

ul.contact-info-list {
  margin-bottom: 30px !important;
}

li.contact-info-item {
  margin-bottom: 25px !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

li.contact-info-item:last-child {
  margin-bottom: 0 !important;
}

.contact-card {
  padding: 30px !important;
}

/* Prevent contact info icons from shrinking/becoming oval and reset margins to ensure alignment */
.contact-info-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.contact-info-content h5 {
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.contact-info-content p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  font-size: 0.95rem !important;
  overflow-wrap: anywhere !important;
}

/* Force original button sizes, padding, and alignments, avoiding theme overrides */
.btn {
  padding: 12px 28px !important;
  font-size: 0.9rem !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  line-height: 1.2 !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.currency-btn {
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  border-radius: 20px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-title) !important;
}

.currency-btn:hover {
  border-color: var(--brand-blue) !important;
  background-color: var(--brand-blue-light) !important;
  color: var(--brand-blue) !important;
}

.currency-label.active {
  color: var(--brand-blue) !important;
}

.theme-toggle-btn {
  background: none !important;
  border: 1px solid var(--border-color) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  color: var(--text-title) !important;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-blue) !important;
  background-color: var(--brand-blue-light) !important;
  color: var(--brand-blue) !important;
}

/* Force correct display of sun/moon icons in theme switcher button */
.theme-toggle-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block !important; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none !important; }
.theme-toggle-btn .sun-icon { display: none !important; }
.theme-toggle-btn .moon-icon { display: block !important; }

/* Override Astra's button:hover / button:focus styles for our custom accordions */
button.faq-trigger {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 22px 28px !important;
  color: var(--text-title) !important;
}

button.faq-trigger:hover,
button.faq-trigger:focus {
  background: none !important;
  color: var(--brand-blue) !important;
  outline: none !important;
}

/* Force slideshow navigation buttons to be perfectly circular and reset Astra button padding/height overrides */
button.slideshow-arrow {
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  background: rgba(7, 9, 14, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

button.slideshow-arrow:hover {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--brand-blue-glow) !important;
}

/* Eliminate default/theme borders in the estimated total box */
.calc-total-box {
  border: none !important;
  border-top: 2px solid var(--border-color) !important;
  background: none !important;
  padding: 25px 0 0 0 !important;
  margin-top: 35px !important;
}

/* ==========================================================================
   DISEÑO RESPONSIVO Y MENÚ HAMBURGUESA
   ========================================================================== */

/* --- TABLET & MOBILE BREAKPOINT (Collapses text links, theme toggle, and quote button into dropdown) --- */
@media (max-width: 1024px) {
  /* Responsive Collapsible Navigation Container */
  .nav-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 30px 24px !important;
    gap: 25px !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 99 !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }

  /* Slide down animation */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu-open .nav-container {
    display: flex !important;
    animation: slideDown 0.3s ease forwards !important;
  }

  /* Enlaces de navegación colapsados */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .nav-links li {
    width: 100% !important;
    text-align: center !important;
  }

  .nav-links a {
    display: block !important;
    padding: 10px 0 !important;
    font-size: 1.1rem !important;
    width: 100% !important;
  }

  /* Botón Cotizar exclusivo para móvil dentro del menú */
  .mobile-quote-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
  }

  .mobile-quote-btn {
    width: 100% !important;
    text-align: center !important;
  }

  /* Ocultar cotización de escritorio en móvil/tablet */
  .desktop-quote-btn {
    display: none !important;
  }

  /* Mostrar y configurar el botón Hamburguesa */
  .hamburger-btn {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    transition: all var(--transition-speed) !important;
    color: var(--text-title) !important;
    box-shadow: none !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  
  .hamburger-btn:hover {
    border-color: var(--brand-blue) !important;
    background-color: var(--brand-blue-light) !important;
    color: var(--brand-blue) !important;
  }
  
  .hamburger-line {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background-color: currentColor !important;
    transition: transform var(--transition-speed), opacity var(--transition-speed) !important;
  }
  
  /* Animación hamburguesa (forma de X) */
  .menu-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .menu-open .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }
  .menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .nav-actions {
    gap: 8px !important;
  }
  
  .currency-btn {
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
  }

  /* Ocultar el switcher de moneda en móviles y habilitar la versión dentro del menú */
  .desktop-only {
    display: none !important;
  }

  .mobile-currency-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
  }

  .mobile-quote-container {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 15px !important;
  }
  
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 1;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-nav {
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
