/* index.css */
/* ==================== 1. RESET ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== 2. VARIABLES DE DISEÑO ==================== */
:root {
  --primary: #800020;
  --accent: #e6a4b4;
  --white: #fff;
  --text: #333;
  --text-light: #555;
  --bg-overlay: rgba(255, 255, 255, 0.98);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --shadow-text: rgba(0, 0, 0, 0.3);

  --font-main: 'Poppins', sans-serif;
  --font-title: 'League Spartan', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius: 16px;
  --btn-radius: 50px;
  --transition: all 0.3s ease;
  --container: 1200px;
  --padding: 40px;
}

/* ==================== 3. CUERPO ==================== */
body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary) 0%, #d4a5b0 50%, var(--accent) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== 4. HEADER Y MENÚ ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--shadow-strong);
  padding: 1rem var(--padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: transform 0.4s ease-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.hide {
  transform: translateY(-100%);
}

/* Logo */
.logo-text {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
}

.logo-chamed {
  color: var(--accent);
}

/* Menú móvil */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
  z-index: 1001;
}

/* Navegación */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Menú móvil activo */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #menu-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-overlay);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    padding: 80px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.26, 1.55);
    z-index: 999;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    border-radius: 16px 0 0 16px;
  }

  #menu-list.active {
    transform: translateX(0);
  }

  header {
    padding: 1rem 20px;
  }

  nav ul {
    display: none;
  }
}

/* ==================== 5. HERO ==================== */
.hero-section {
  background: url('https://placehold.co/1920x1080/800020/e6a4b4?text=Creatividad+que+Convierte') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 0;
}

/* Botón principal */
.button {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(128, 0, 32, 0.4);
}

/* ==================== 6. PROPUESTA DE VALOR ==================== */
.value-section {
  padding: 100px 20px;
  text-align: center;
  background: #f9f0f2;
  margin: 0;
}

.value-section h2 {
  color: var(--primary);
  font-size: 2.2rem;
}

.value-section p {
  max-width: 700px;
  margin: 20px auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

.value-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 40px auto 0;
}

.value-card {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.value-card strong {
  color: var(--primary);
  font-size: 1.3rem;
}

.value-card p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

/* ==================== 7. SERVICIOS ==================== */
.services-intro {
  padding: 100px 20px 60px;
  text-align: center;
  background: #f9f0f2;
}

.services-intro h2 {
  color: var(--primary);
  font-size: 2.2rem;
}

.services-intro p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background: var(--bg-overlay);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 1rem 0 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ==================== 8. CTA FINAL ==================== */
.cta {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  margin: 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* ==================== 9. WHATSAPP FLOTANTE ==================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  border: 3px solid white;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  font-weight: bold;
}

.whatsapp-float-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

/* ==================== 10. MEDIA QUERIES ==================== */
@media (max-width: 480px) {
  .whatsapp-float-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
    bottom: 20px;
    right: 15px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .cta h2 {
    font-size: 1.8rem;
  }
}