/* PAM - Punto, Aguja & Manualidades | Sistema Visual Oficial de Marca (Brand Sheet v1) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

:root {
  /* Paleta Extraída por Muestreo de Píxeles de logo_pam.png */
  --pam-brown:      #784828;      /* Café Contorno / Wordmark */
  --pam-brown-dark: #5C351B;
  --pam-pink:       #F7B8CC;      /* Rosa Principal */
  --pam-pink-light: #FCE4EA;      /* Rosa Claro / Fondo Suave */
  --pam-blue:       #C0E0E8;      /* Azul Pastel */
  --pam-yellow:     #F8E0A0;      /* Amarillo Pastel */
  --pam-lavender:   #CDB4D6;      /* Lavanda Carrete */
  --pam-white:      #FFFFFF;
  
  --bg-main: #FDFBF8;            /* Blanco Cálido Artesanal */
  --bg-card: #FFFFFF;
  --text-main: #4A3A30;          /* Café Espeso Suave */
  --text-muted: #7A6960;
  --border-subtle: #F2E8E0;
  
  --shadow-soft: 0 8px 24px rgba(120, 72, 40, 0.06);
  --shadow-hover: 0 16px 36px rgba(120, 72, 40, 0.12);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Adorno de Mancha Orgánica Rosa (Fiel al Logo) */
body::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--pam-pink-light) 0%, rgba(252,228,234,0) 70%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--pam-brown);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.2s;
}

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

.btn-header-wa {
  background-color: #25D366;
  color: white !important;
  padding: 10px 22px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700 !important;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: all 0.2s;
}

.btn-header-wa:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Hero Section */
.hero {
  padding: 60px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--pam-pink-light);
  color: var(--pam-brown);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--pam-pink);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--pam-brown);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--pam-brown);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--pam-yellow);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--pam-brown);
  color: white;
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(120, 72, 40, 0.22);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--pam-brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(120, 72, 40, 0.32);
}

.btn-outline {
  border: 2px solid var(--border-subtle);
  background: white;
  color: var(--pam-brown);
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--pam-brown);
  background: var(--pam-pink-light);
}

.hero-logo-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--border-subtle);
  text-align: center;
  position: relative;
}

.hero-logo-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pam-yellow);
  color: var(--pam-brown);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 16px;
  border: 1px solid rgba(120, 72, 40, 0.15);
}

/* Feature Highlights */
.highlights-bar {
  background: white;
  padding: 32px 0;
  border-y: 1px solid var(--border-subtle);
  margin-bottom: 70px;
  box-shadow: var(--shadow-soft);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid var(--pam-brown);
}

.highlight-icon.pink { background-color: var(--pam-pink); color: var(--pam-brown); }
.highlight-icon.blue { background-color: var(--pam-blue); color: var(--pam-brown); }
.highlight-icon.yellow { background-color: var(--pam-yellow); color: var(--pam-brown); }
.highlight-icon.purple { background-color: var(--pam-lavender); color: var(--pam-brown); }

.highlight-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pam-brown);
}

.highlight-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-tag {
  color: var(--pam-brown);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--pam-brown);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Course Cards */
.courses-section {
  padding-bottom: 80px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--pam-pink);
}

.course-card:nth-child(2)::before { background: var(--pam-blue); }
.course-card:nth-child(3)::before { background: var(--pam-yellow); }
.course-card:nth-child(4)::before { background: var(--pam-lavender); }

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pam-brown);
}

.course-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb img {
  transform: scale(1.06);
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pam-brown);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--pam-brown);
}

.course-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pam-brown);
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-price-box {
  background: var(--pam-pink-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(120, 72, 40, 0.1);
}

.price-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.price-item strong {
  font-size: 1.15rem;
  color: var(--pam-brown);
}

.btn-course-wa {
  width: 100%;
  background-color: var(--pam-brown);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.btn-course-wa:hover {
  background-color: var(--pam-brown-dark);
}

/* Schedule Section */
.schedule-section {
  background: white;
  padding: 70px 0;
  border-y: 1px solid var(--border-subtle);
}

.schedule-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 2px solid var(--border-subtle);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.schedule-box {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--pam-yellow);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-box.tarde {
  border-top-color: var(--pam-blue);
}

.schedule-box h4 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-time {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--pam-brown);
  margin-bottom: 6px;
}

.schedule-days {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Gallery Showcase */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 240px;
  box-shadow: var(--shadow-soft);
  border: 3px solid white;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(120, 72, 40, 0.9));
  color: white;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* FAQ */
.faq-section {
  background: white;
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-main);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  color: var(--pam-brown);
}

.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--pam-brown);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px;
  display: none;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: var(--pam-brown);
  color: white;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 16px;
  background: white;
  padding: 4px;
  border-radius: 12px;
}

.footer-brand p {
  color: #F4E8E0;
  font-size: 0.95rem;
  max-width: 360px;
}

.footer-col h4 {
  color: var(--pam-yellow);
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #F4E8E0;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: #E6D8D0;
}

/* Floating WhatsApp Button */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.float-wa:hover {
  transform: scale(1.1);
}

@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
