/* ===== VARIABLES CSS ===== */
:root {
  /* Colores principales - Milpensiones */
  --primary-color: #000000;
  --primary-light: #4161ff;
  --primary-dark: #001a9b;
  --secondary-color: #35f40a;
  --secondary-light: #5ef73b;
  --secondary-dark: #2bc408;
  --accent-red: #ff0000;

  /* Colores de texto */
  --text-color: #000000;
  --text-light: #666666;
  --text-lighter: #999999;

  /* Colores de fondo */
  --bg-color: #ffffff;
  --bg-light: #f9fafb;
  --bg-gray: #f3f4f6;
  --bg-dark: #000000;
  --border-color: #e5e7eb;

  /* Sombras */
  --shadow: 0 1px 3px rgba(0, 32, 193, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 32, 193, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 32, 193, 0.2);
  --shadow-glow: 0 0 20px rgba(53, 244, 10, 0.3);

  /* Utilidades */
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 4rem;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--primary-color);
  color: white;
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--full {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--secondary-light);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(53, 244, 10, 0.7);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(53, 244, 10, 0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #c0caff 0%, #e8ebff 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero__content {
  animation: fadeInLeft 1s ease;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero__meta {
  margin-top: 2rem;
}

.meta-card {
  display: inline-flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.meta-card__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
}

.meta-card__label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
}

.hero__image {
  animation: fadeInRight 1s ease;
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8rem;
  box-shadow: var(--shadow-lg);
}

.hero__testimonial {
  background-color: white;
  padding: 2rem 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.mini-testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mini-testimonial i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mini-testimonial p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.mini-testimonial cite {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: normal;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 5rem 0;
}

.about__content {
  max-width: 900px;
  margin: 0 auto;
}

.about__paragraph {
  font-size: 1.125rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  transition: var(--transition);
}

.value-item:hover {
  background-color: var(--bg-gray);
  transform: translateY(-2px);
}

.value-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.value-item span {
  font-weight: 600;
  color: var(--text-color);
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-card__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.service-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.service-card__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card__link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.service-card__link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== PROCESS SECTION ===== */
.process {
  padding: 5rem 0;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step__number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step__icon {
  width: 100px;
  height: 100px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.step:hover .step__icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.step__description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__image {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-card__author strong {
  color: var(--text-color);
  font-size: 1.125rem;
}

.testimonial-card__author span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===== BLOG SECTION ===== */
.blog {
  padding: 5rem 0;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--secondary-color);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card__icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.blog-card__excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-card__link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.blog-card__link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== IMPACT SECTION ===== */
.impact {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(53, 244, 10, 0.1), transparent 50%);
  pointer-events: none;
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.impact-stat__number {
  font-size: 4rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.impact-stat__label {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.contact__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

.contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  transition: var(--transition);
}

.contact-method:hover {
  background-color: var(--bg-gray);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-method span {
  color: var(--text-color);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__brand {
  max-width: 500px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: white;
}

.footer__logo i {
  color: var(--secondary-color);
}

.footer__text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__legal {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Footer responsive */
@media screen and (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__brand {
    max-width: 100%;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 968px) {
  .section-title {
    font-size: 2rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .contact__content {
    grid-template-columns: 1fr;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-color);
    padding: 8rem 6rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }

  .nav__toggle {
    display: block;
  }
}

@media screen and (max-width: 576px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .meta-card__number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .services__grid,
  .process__steps,
  .testimonials__grid,
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .impact-stat__number {
    font-size: 3rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1rem;
    right: 1rem;
  }
}