/* ========================================
   OTEC Landing Page — kob.dev/otecs
   Palette: White, Blue, Red + Pastels
   ======================================== */

:root {
  /* Blues */
  --blue-900: #1E3A5F;
  --blue-700: #1A56DB;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-100: #DBEAFE;
  --blue-50: #EFF6FF;

  /* Reds */
  --red-700: #B91C1C;
  --red-600: #DC2626;
  --red-500: #EF4444;
  --red-400: #F87171;
  --red-100: #FEE2E2;
  --red-50: #FEF2F2;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Pastels */
  --pastel-blue: #E0ECFF;
  --pastel-red: #FFE5E5;
  --pastel-green: #DCFCE7;
  --pastel-purple: #EDE9FE;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 6rem;
  --container-max: 1140px;

  /* Misc */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 15px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Section Common
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  color: var(--white);
  border-color: var(--red-600);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-700), var(--red-600));
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-200);
}

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

.btn-full {
  width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  overflow: hidden;
  text-align: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--blue-500);
  top: -150px;
  right: -100px;
  animation: floatShape 12s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--red-500);
  bottom: -100px;
  left: -80px;
  animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--blue-400);
  top: 40%;
  left: 60%;
  animation: floatShape 10s ease-in-out infinite;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--blue-200);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-600), var(--red-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--gray-900);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-700);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ========================================
   Dolores Section
   ======================================== */
.dolores {
  padding: var(--section-py) 0;
  background: var(--white);
}

.dolores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dolor-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.dolor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.dolor-red::before {
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
}

.dolor-blue::before {
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
}

.dolor-pastel::before {
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.dolor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.dolor-red:hover {
  background: var(--red-50);
}

.dolor-blue:hover {
  background: var(--blue-50);
}

.dolor-pastel:hover {
  background: var(--pastel-purple);
}

.dolor-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dolor-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.dolor-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dolor-card p strong {
  color: var(--gray-800);
}

.dolor-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ========================================
   Soluciones Section
   ======================================== */
.soluciones {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.solucion-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}

.solucion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.solucion-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.solucion-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.solucion-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.solucion-card p strong {
  color: var(--gray-800);
}

.solucion-result {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-600);
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

/* ========================================
   Diferenciador Section
   ======================================== */
.diferenciador {
  padding: var(--section-py) 0;
  background: var(--white);
}

.dif-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.dif-text .section-tag {
  margin-bottom: 1rem;
}

.dif-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.dif-text>p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.dif-text>p strong {
  color: var(--gray-900);
}

.dif-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.dif-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--pastel-green);
  color: #16A34A;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.dif-feature strong {
  font-size: 0.95rem;
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.15rem;
}

.dif-feature p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.dif-visual {
  display: flex;
  justify-content: center;
}

.dif-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
}

.dif-card-item {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.dif-card-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.dif-card-item span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}

.dif-card-item p {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}

.dif-card-1 {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.dif-card-1 span {
  color: var(--blue-600);
}

.dif-card-2 {
  background: var(--pastel-purple);
  border-color: #DDD6FE;
}

.dif-card-2 span {
  color: #7C3AED;
}

.dif-card-3 {
  background: var(--red-50);
  border-color: var(--red-100);
}

.dif-card-3 span {
  color: var(--red-600);
}

.dif-card-4 {
  background: var(--pastel-green);
  border-color: #BBF7D0;
}

.dif-card-4 span {
  color: #16A34A;
}

/* ========================================
   Nichos / Industries Section
   ======================================== */
.nichos {
  padding: var(--section-py) 0;
  background: var(--white);
}

.nichos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.nicho-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  background: var(--gray-50);
}

.nicho-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
  background: var(--white);
}

.nicho-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.nicho-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.nicho-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   Contacto Section
   ======================================== */
.contacto {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--blue-50) 100%);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info .section-tag {
  margin-bottom: 1rem;
}

.contacto-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contacto-info>p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contacto-info>p strong {
  color: var(--gray-900);
}

.contacto-garantias {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.garantia {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.garantia span {
  font-size: 1.25rem;
}

.garantia p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Form */
.contacto-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--gray-800);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

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

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: var(--pastel-green);
  color: #166534;
  border: 1px solid #BBF7D0;
}

.form-message.error {
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 3rem 0 2rem;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-700);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo .accent {
  color: var(--blue-400);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

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

.footer-bottom p {
  font-size: 0.85rem;
}

/* ========================================
   Animations
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }

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

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

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

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

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

  .dif-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contacto-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .contacto-form-wrapper {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .dif-text h2,
  .contacto-info h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}