/* ==========================================================================
   1. VARIABLES & CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #92066c; /*color de todos los titulos */
  --accent: #06b6d4;
  --light: #f8fafc;
  --text: #334155;
  --muted: #64748b;
  --border: #efe2f0;
  --white: #fff;
  --titulo:#fff;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--secondary);
}

a {
  text-decoration: none;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZABLES & SECCIONES
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 700px;
}

.icon-box {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: 22px;
}

/* ==========================================================================
   3. BOTONES
   ========================================================================== */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 13px 21px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);
  transition: 0.25s;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-custom {
  border: 1px solid var(--border);
  color: var(--secondary);
  background: #fff;
  padding: 13px 21px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s;
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: 0;
  padding: 14px 23px;
  border-radius: 12px;
  font-weight: 800;
}

.btn-white:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   4. NAVEGACIÓN (NAVBAR)
   ========================================================================== */
.navbar {
  background: rgba(88, 1, 66, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgb(248, 248, 249);
  transition: 0.25s;
  color: #fff;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--titulo);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

.nav-link {
  color: #ffffff !important;
  font-weight: 600;
  padding: 9px 13px !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.page-hero {
  padding: 145px 0 85px;
  background: 
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at 10% 70%, rgba(6, 182, 212, 0.1), transparent 28%),
    #f8fafc;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

/* ==========================================================================
   6. TARJETAS Y CARACTERÍSTICAS
   ========================================================================== */
.card-modern {
  height: 100%;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: 0.3s;
}

.card-modern:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: #bfdbfe;
}

.card-modern p,
.feature p,
.portfolio-body p {
  color: var(--muted);
  line-height: 1.75;
}

.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #f8fafc;
  height: 100%;
}

.feature .icon-box {
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   7. SECCIÓN OSCURA
   ========================================================================== */
.dark-section {
  background: var(--secondary);
  color: #cbd5e1;
}

.dark-section h2,
.dark-section h3 {
  color: #fff;
}

.dark-section .section-description {
  color: #94a3b8;
}

.dark-card {
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.dark-card i {
  color: #67e8f9;
  font-size: 1.7rem;
}

/* ==========================================================================
   8. PORTAFOLIO
   ========================================================================== */
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}



.portfolio-image {
  height: 230px;
  overflow: hidden;
  position: relative;
  /* Se retiraron el padding y el background de degradado previa para que la imagen se vea limpia */
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción de la imagen sin deformarla */
  transition: transform 0.3s ease;
}

/* Efecto opcional de zoom suave al pasar el cursor */
.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

/*
.portfolio-image {
  height: 230px;
  padding: 22px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}*/

.portfolio-browser {
  height: 100%;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}

.browser-line {
  height: 9px;
  width: 45%;
  background: #cbd5e1;
  border-radius: 8px;
  margin-bottom: 12px;
}

.browser-boxes {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.browser-side,
.browser-main {
  border-radius: 10px;
  background: #e2e8f0;
  min-height: 110px;
}

.browser-main {
  background: #dbeafe;
}

.portfolio-body {
  padding: 25px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ==========================================================================
   9. CALL TO ACTION (CTA)
   ========================================================================== */
.cta-box {
  border-radius: 32px;
  padding: 65px;
  background: 
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.25), transparent 30%),
    linear-gradient(135deg, #1d4ed8, #0f172a);
  color: #fff;
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-box p {
  color: #cbd5e1;
  max-width: 650px;
  line-height: 1.8;
}

/* ==========================================================================
   10. CONTACTO Y FORMULARIOS
   ========================================================================== */
.contact-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-item i {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  color: var(--muted);
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
}

.form-control:focus,
.form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   11. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
footer {
  background: #020617;
  color: #94a3b8;
  padding: 65px 0 25px;
}

footer h5 {
  color: #fff;
  margin-bottom: 18px;
}

footer a {
  color: #94a3b8;
  display: block;
  margin-bottom: 10px;
}

footer a:hover {
  color: #fff;
}

.footer-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 45px;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   12. ELEMENTOS FLOTANTES (WHATSAPP)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.7rem;
  z-index: 1050;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
  transition: 0.25s;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.04);
}

/* ==========================================================================
   13. MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 75px 0;
  }

  .page-hero {
    padding-top: 120px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 65px 0;
  }

  .page-hero {
    padding: 110px 0 60px;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .cta-box {
    padding: 38px 25px;
    border-radius: 24px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}