/* styles.css */

/* ===================== */
/* 🎨 Variables de color */
/* ===================== */
:root {
  --color-amarillo: #fceeb5;
  --color-naranja: #fdd5b1;
  --color-rojo: #f7b5ac;
  --color-fondo-claro: #fffaf5;
  --color-texto-principal: #3a3a3a;
  --color-hover: #e27d60;
}


/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-principal-texto);
  line-height: 1.6;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1100;
}

/* Navbar */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.navbar h1 {
  font-size: 1.5rem;
  color: var(--color-principal-texto);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

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

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

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1200;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--color-principal-texto);
  margin: 4px 0;
}

/* Menú móvil */
.nav-links {
  transition: all 0.3s ease;
}

.nav-links.hidden {
  display: none !important;
}

.nav-links.active {
  display: flex !important;
  position: absolute;
  top: 65px;
  right: 0;
  background-color: #fff;
  width: 100%;
  flex-direction: column;
  padding: 1rem;
  z-index: 1050;
}

/* Fondo hero */
section.relative {
  background-image: url('./images/banner.webp');
    background-image: url('./images/img6.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sobre mi - imagen */
#sobre-mi img {
  transition: transform 0.3s ease;
}

#sobre-mi img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: #fff;
    width: 100%;
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Hero Section */
.hero {
  background: url('https://source.unsplash.com/1600x600/?peaceful,meditation') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 140px 20px 100px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta {
  background-color: var(--color-rojo);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta:hover {
  background-color: #e74c3c;
}

/* Section Styles */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color:var(--color-texto-principal);
}

section p {
  margin-bottom: 1rem;
}

/* Cursos */
.cursos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.curso {
  flex: 1 1 300px;
  background: var(--color-amarillo);
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.curso:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.curso img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.curso-content {
  padding: 1rem;
}

/* Contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--color-naranja);
  color: white;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #e67e22;
}

/* Footer */
footer {
  background-color: var(--color-amarillo);
  padding: 1rem 10px;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  margin: 0 0.5rem;
  color: var(--color-principal-texto);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--color-enlace-hover);
}

/* Animate.css override */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
