/*
 * Estilos para Ímpetu Interno
 * La paleta usa tonos azul profundo, dorado cálido y coral suave para crear
 * una atmósfera equilibrada y masculina. Las fuentes Raleway y Lato aportan
 * claridad y elegancia.
 */

:root {
  --primary: #1a3b52;
  --secondary: #eac25c;
  --accent: #e28065;
  --light: #f9f5ef;
  --text: #2f2f2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: #fff;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    flex-direction: column;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  height: 100vh;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 59, 82, 0.5);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Article */
.article {
  padding: 6rem 2rem 4rem;
  background-color: var(--light);
}
.article h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}
.article .sections {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.article article {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.article article h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.article article p {
  margin-bottom: 0.5rem;
}

/* Programs */
.programs {
  padding: 4rem 2rem;
  background-color: var(--light);
}
.programs h2 {
  text-align: center;
  color: var(--primary);
  font-family: 'Raleway', sans-serif;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.program-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.program-card:hover {
  transform: translateY(-5px);
}
.program-card h4 {
  font-family: 'Raleway', sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.program-card p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.program-card .price {
  color: var(--accent);
  font-weight: bold;
}

/* Coach */
.coach-section {
  padding: 4rem 2rem;
  background-color: var(--light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}
.coach-section img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  flex: 1 1 300px;
}
.coach-info {
  flex: 2 1 400px;
}
.coach-info h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.coach-info p {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.opiniones {
  padding: 4rem 2rem;
  background-color: var(--light);
}
.opiniones h2 {
  text-align: center;
  color: var(--primary);
  font-family: 'Raleway', sans-serif;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.opiniones-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.opinion {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.opinion h4 {
  font-family: 'Raleway', sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.opinion p {
  font-size: 0.9rem;
}

/* Opinion Form */
.opinion-form {
  max-width: 600px;
  margin: 2rem auto 0;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.opinion-form h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-align: center;
}
.opinion-form input,
.opinion-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
}
.opinion-form button {
  background-color: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.opinion-form button:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
}
.modal-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--primary);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.modal-content button:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Contact */
.contact {
  padding: 4rem 2rem;
  background-color: var(--light);
}
.contact h2 {
  text-align: center;
  color: var(--primary);
  font-family: 'Raleway', sans-serif;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.contact-form {
  max-width: 700px;
  margin: auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
}
.contact-form .checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.contact-form .checkbox input {
  margin-right: 0.5rem;
}
.contact-form button {
  background-color: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-form button:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}
footer a {
  color: var(--secondary);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}