@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --primary: #d81b60;
  --primary-light: #f06292;
  --primary-dark: #880e4f;
  --secondary: #4caf50;
  --accent: #ffeb3b;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg);
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

p {
  font-size: 1.2em;
}

/* Columnas del mismo ancho */
.split-columns {
  display: flex;
  flex-direction: column;
}

@media (min-width: 40em) {

  /* 40em = 640px */
  .split-columns {
    flex-direction: row;
  }

  .split-columns>* {
    flex-basis: 100%;
  }
}


/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-portal {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  padding: 0 4rem;
  margin-top: 78.4px;
  background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--primary-light);
  filter: blur(150px);
  opacity: 0.1;
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.hero-content h1 {
  font-size: clamp(3em, 1em + 5vw, 5em);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.hero-content p {
  font-size: 1.5em;
  color: var(--text-light);
  margin: 0 auto 30px;
}

.left-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 2px;
  transition: var(--transition);
}
.btn-link:hover {
  color: var(--primary-dark);
}

/* Stats Section */
.stats {
  padding: 4rem;
  display: flex;
  justify-content: space-around;
  gap: 4rem;
  background: var(--white);
  text-align: center;
}

.stat-item h2 {
  font-size: 3em;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-item h3 {
  font-size: 1.5em;
  color: var(--text-light);
  font-weight: 500;
}

.stat-item img {
  height: 150px;
  width: auto;
  margin: 0 auto;
  padding-bottom: 1rem;
}

@keyframes mostrar-contador {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ocultar-contador {
    opacity: 0;
}

.animar {
    animation: mostrar-contador 1.3s;
}


/* Sections General */
section {
  padding: 100px 50px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.4em;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Programs/Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card p {
  font-size: 1.2em;
  text-align: left;
  text-wrap: pretty;
}

.card:hover {
  background: var(--bg-alt);
  transform: translateY(-10px);
}

.card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Events */
.event-card {
  display: flex;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.event-img {
  width: 300px;
  border-right: 4px solid var(--primary);
}
.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  padding: 30px;
  flex: 1;
}

.event-info p {
  margin: 1rem 0 2rem 0;
  color: var(--primary);
}


/* Blog */
.blog-card {
  position: relative;
  height: 450px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-img {
  height: 250px;
  background: #eee;
  background-size: cover;
  background-position: top;
}

.blog-content {
  padding: 25px;
}

.blog-content a {
  position: absolute;
  bottom: 1.5rem;
}

/* Herramientas */
.herramientas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.herramientas-container .card img {
  width: auto;
  max-height: 100px;
  margin: 0 auto;
  padding-bottom: 2rem;

}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 80px 50px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}
