/* ============================================
   DoLoop - Estilos principales
   ============================================ */

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #f9fafb;
  color: #1f2937;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* --- Utility Classes --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.grid {
  display: grid;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Spacing utilities */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Max widths */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

.header.shadow {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  max-width: 100%;
}

.logo-img {
  height: 2.5rem;
  max-width: 100%;
  width: auto;
}

.mobile-menu-btn {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

.desktop-nav a {
  color: #374151;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-left: 2rem;
  position: relative;
  text-decoration: none;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #2563eb;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
}

.desktop-nav a:hover {
  color: #2563eb;
}

.desktop-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f3f4f6;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0.6rem 0.7rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #374151;
  border-radius: 2px;
}

/* Mobile Menu - Fullscreen Modal */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(128, 128, 128, 0.95);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  position: relative;
}

.close-menu-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 2rem;
  padding: 0.5rem;
  z-index: 61;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: white;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #808080;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: #60a5fa;
}

.mobile-nav a i {
  margin-right: 0.75rem;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  text-align: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: white;
  color: #2563eb;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #f3f4f6;
}

.btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: white;
  color: #2563eb;
}

.hero-deco-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 5rem;
  height: 5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

.hero-deco-2 {
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 8rem;
  height: 8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

/* --- Sections Common --- */
.section {
  padding: 5rem 0;
  scroll-margin-top: 5rem;
}

.section-white {
  background-color: white;
}

.section-gray {
  background-color: #f9fafb;
}

#servicios,
#nosotros,
#contacto {
  scroll-margin-top: 5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-blue {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
}

.service-card-purple {
  background: linear-gradient(135deg, #faf5ff, #fce7f3);
}

.service-card-green {
  background: linear-gradient(135deg, #f0fdf4, #d1fae5);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background-color: #2563eb;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon-purple {
  background-color: #9333ea;
}

.service-icon-green {
  background-color: #16a34a;
}

.service-icon i {
  color: white;
  font-size: 1.5rem;
}

.service-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-desc {
  color: #6b7280;
  margin-bottom: 1rem;
}

.service-features {
  font-size: 0.875rem;
  color: #6b7280;
}

.service-features li {
  margin-bottom: 0.5rem;
}

.service-features i {
  margin-right: 0.5rem;
}

.service-features .check-blue { color: #2563eb; }
.service-features .check-purple { color: #9333ea; }
.service-features .check-green { color: #16a34a; }

/* --- Stats --- */
.stats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Nosotros --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.tag i {
  margin-right: 0.5rem;
}

.tag-blue {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.tag-purple {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.tag-green {
  background-color: #dcfce7;
  color: #15803d;
}

.about-features {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.about-features-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-blue {
  background-color: #dbeafe;
  color: #2563eb;
}

.feature-icon-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.feature-icon-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: #6b7280;
  font-size: 0.875rem;
}

/* --- Contacto --- */
.contact-form {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: #dc2626;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.form-input:focus {
  /*outline: none;*/
  outline: 2px solid #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
  border-color: transparent;
  /*ring: 2px solid #3b82f6;*/
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.required-note {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #7e22ce);
  transform: scale(1.05);
}

.btn-submit i {
  margin-right: 0.5rem;
}

/* Messages */
.msg {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 30px;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.msg-ok {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.msg-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.msg-wait {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Animations --- */
@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

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

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

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

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

  .section-title {
    font-size: 3rem;
  }

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

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

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

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