@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* EC.STUDIO - Identidad visual */

:root {
  --ec-azul: #133464;
  --ec-magenta: #FF2687;
  --ec-turquesa: #00FBEA;
  --ec-lima: #D8FF76;
  --ec-blanco: #FFFFFF;
  --ec-negro: #171717;
}

/* TIPOGRAFIAS */

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.65;
  color: var(--ec-azul);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.5vw, 48px);
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
}

p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
}

/* NAVEGACION */

nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--ec-magenta);
}

/* BOTONES */

.ec-boton,
a.ec-boton {
  display: inline-block;
  background: var(--ec-lima);
  color: var(--ec-azul);
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ec-boton:hover {
  background: var(--ec-turquesa);
  color: var(--ec-azul);
  transform: translateY(-2px);
}

.ec-boton-secundario {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: 13px 26px;
  text-decoration: none;
}

/* SECCIONES */

.ec-seccion {
  padding: 90px 6%;
}

.ec-fondo-azul {
  background: var(--ec-azul);
  color: var(--ec-blanco);
}

.ec-fondo-lima {
  background: var(--ec-lima);
  color: var(--ec-azul);
}

.ec-fondo-turquesa {
  background: var(--ec-turquesa);
  color: var(--ec-azul);
}

.ec-fondo-magenta {
  background: var(--ec-magenta);
  color: var(--ec-negro);
}

/* PORTADA */

.ec-hero {
  background: var(--ec-azul);
  color: var(--ec-blanco);
  padding: 100px 6%;
}

.ec-hero h1 {
  color: var(--ec-lima);
}

.ec-hero p {
  color: var(--ec-blanco);
  max-width: 620px;
}

/* TARJETAS */

.ec-tarjeta {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(19, 52, 100, 0.12);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
}

.ec-tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(19, 52, 100, 0.12);
}

/* IMAGENES */

.ec-imagen {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* FORMULARIOS */

.ec-formulario input,
.ec-formulario textarea,
.ec-formulario select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #D5DCE5;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}

.ec-formulario input:focus,
.ec-formulario textarea:focus {
  outline: 2px solid var(--ec-azul);
}

/* SELECCION DE TEXTO */

::selection {
  background: var(--ec-lima);
  color: var(--ec-azul);
}

/* VERSION MOBILE */

@media (max-width: 768px) {
  .ec-seccion {
    padding: 50px 6%;
  }

  .ec-hero {
    padding: 60px 6%;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .ec-tarjeta {
    padding: 22px;
  }

  .ec-boton {
    text-align: center;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .ec-boton,
  .ec-tarjeta {
    transition: none;
  }

  .ec-boton:hover,
  .ec-tarjeta:hover {
    transform: none;
  }
}