/* ==========================
       RESET
    ========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #ef4f82;
  --blue: #173a9a;
  --blue-dark: #0d1f5f;
  --white: #ffffff;
  --paper: #f7f8fc;
  --text: #1b2333;
  --gray: #6b7280;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

/* ==========================
       HERO
    ========================== */

.hero {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(
      120deg,
      rgb(168, 191, 255),
      rgba(13, 31, 95, 0.95),
      rgba(239, 79, 130, 0.75)
    ),
    url("img/bannerprincipal.avif") no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  right: -250px;
  top: -250px;
  filter: blur(40px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(239, 79, 130, 0.12);
  border-radius: 50%;
  left: -150px;
  bottom: -150px;
  filter: blur(30px);
}

/* ==========================
       NAVBAR
    ========================== */

.navbar {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
}
.menu {
  display: flex;
  gap: 35px;
}

.menu a {
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.menu a:hover {
  color: #ffd3e1;
}

/* ==========================
       HERO CONTENT
    ========================== */

.hero-content {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding-bottom: 60px;
}

.hero-tag {
  display: inline-block;
  width: max-content;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  max-width: 850px;
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-content p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ==========================
       BUTTONS
    ========================== */

.btn-primary {
  background: var(--pink);
  color: white;
  padding: 16px 30px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(239, 79, 130, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 16px 30px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================
       SECTION HEADER
    ========================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header span {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 40px;
  color: var(--blue-dark);
  max-width: 700px;
  margin: auto;
  line-height: 1.2;
}

/* ==========================
       STATS
    ========================== */

.stats {
  padding: 80px 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.stat-card {
  background: white;
  padding: 35px 25px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 40px;
  color: var(--pink);
  margin-bottom: 10px;
  font-weight: 900;
}

.stat-card p {
  color: var(--gray);
  font-weight: 500;
}

/* ==========================
       SERVICES
    ========================== */

.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.service-card {
  background: white;
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

.service-card span {
  display: block;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #f66693;
  margin: 0 auto;
}

.service-card h3 {
  text-align: center;
  color: var(--blue-dark);
  margin: 15px 0;
  font-size: 20px;
}

.service-card p {
  text-align: center;
  color: var(--gray);
  line-height: 1.6;
  font-size: 15px;
}

/* ==========================
       PROCESS
    ========================== */

.process {
  padding: 100px 0;
  background: white;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.process-card {
  text-align: center;
  padding: 40px 25px;
  position: relative;
}

.number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: auto auto 25px;
  background: linear-gradient(135deg, var(--pink), #ff89ae);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(239, 79, 130, 0.3);
}

.process-card h3 {
  color: var(--blue-dark);
  margin-bottom: 12px;
  font-size: 22px;
}

.process-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* ==========================
       INDUSTRIES
    ========================== */

.industries {
  padding: 100px 0;
  background: var(--paper);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.industry-card {
  background: white;
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  text-align: center;
}

.industry-card:hover {
  transform: translateY(-10px);
}

.industry-card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-size: 18px;
}

.industry-card p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 14px;
  padding: 0 10px 10px;
}

/* ==========================
       CTA
    ========================== */

.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  text-align: center;
  color: white;
}

/* --- Contenedor General --- */
.cta-container-vertical {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
}

.cta-header {
  text-align: center;
  margin-bottom: 50px;
}

.cta-header h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #f66693;
}

.cta-header p {
  font-size: 18px;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

.cta-form-modern {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 767px) {
  .form-row {
    flex-direction: row;
  }
  .form-row .form-group-modern {
    flex: 1;
  }
}

.form-group-modern {
  position: relative;
  width: 100%;
}

.form-group-modern input,
.form-group-modern textarea {
  width: 100%;
  padding: 15px 8px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid rgba(203, 213, 225, 0.4);
  background: transparent;
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group-modern textarea {
  resize: none;
  min-height: 80px;
}

.form-group-modern label {
  position: absolute;
  left: 8px;
  top: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group-modern input:focus ~ label,
.form-group-modern input:not(:placeholder-shown) ~ label,
.form-group-modern textarea:focus ~ label,
.form-group-modern textarea:not(:placeholder-shown) ~ label {
  top: -16px;
  font-size: 13px;
  font-weight: 600;
  color: #f66693;
  letter-spacing: 0.05em;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
  border-bottom-color: #f66693;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background-color: var(--pink);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modern svg {
  transition: transform 0.3s ease;
}

.btn-modern:hover {
  background-color: #d13a69;
  box-shadow: 0 10px 25px rgba(239, 79, 130, 0.4);
}

.btn-modern:hover svg {
  transform: translateX(4px);
}

.btn-modern:active {
  transform: scale(0.98);
}

/* ==========================
       FOOTER
    ========================== */

.footer {
  background: #08133d;
  color: white;
  padding: 80px 0 40px;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
}

.footer-brand span {
  color: var(--pink);
}

.footer h4 {
  margin-bottom: 25px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.footer p,
.footer a {
  color: white;
  margin-bottom: 12px;
  line-height: 1.6;
  display: block;
  transition: 0.3s;
}

.footer a:hover {
  color: var(--pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.logo-footer {
  width: 150px;
  margin: auto;
  margin-bottom: 20px;
}

/* ==========================
       RESPONSIVE
    ========================== */

@media (max-width: 1024px) {
  .stats .container,
  .services-grid,
  .process-grid,
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats .container,
  .services-grid,
  .process-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.6;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-form-modern {
    padding: 30px 20px;
  }

  .logo-footer{
    width: 170px;
    margin: auto;
    text-align: center;
  }
}
