* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f6f9;
  color: #1f2933;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e40af);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
}

.hero p {
  max-width: 700px;
  margin: 20px auto;
}

.btn-primary {
  display: inline-block;
  background: #fbbf24;
  color: #1f2933;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
}

.btn-ver:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

/* CONTENEDOR */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  margin: 40px 0 20px;
}

/* GRID GENERAL */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* SOLO HIDRÁULICA */
.hydraulics-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* CARD */
.course-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-6px);
}

/* IMÁGENES DE CURSOS - TAMAÑO UNIFORME */
.course-card img {
  width: 100%;
  height: 180px;          /* Altura fija uniforme */
  object-fit: cover;      /* Recorte inteligente */
  border-radius: 12px;
  margin-bottom: 15px;
}


.course-card h4 {
  margin-bottom: 8px;
}

/* WHY */
.why {
  background: #1e3a8a;
  color: white;
  padding: 80px 20px;
}

.why h2 {
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.why-card {
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

.plantillas-premium {
  padding: 110px 20px;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #fff;
}

.plantillas-container {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.tag-premium {
  display: inline-block;
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.plantillas-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.plantillas-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e5e7eb;
  margin-bottom: 35px;
}

.plantillas-features {
  display: flex;
  gap: 25px;
  margin-bottom: 45px;
}

.feature {
  background: rgba(255,255,255,0.08);
  padding: 18px 20px;
  border-radius: 14px;
  text-align: center;
  width: 140px;
}

.feature span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.btn-premium {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(56,189,248,0.4);
}

/* Lado visual */
.plantillas-showcase {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.mockup-card {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  padding: 35px;
  border-radius: 22px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.mockup-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.mockup-card h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.mockup-card p {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.mockup-card.secondary {
  transform: translateX(40px);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .plantillas-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .plantillas-features {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mockup-card.secondary {
    transform: none;
  }
}


/* CTA */
.cta {
  text-align: center;
  padding: 80px 20px;
}

/* FOOTER */
footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ===== POR QUÉ ELEGIR ===== */
.why-us {
  padding: 80px 20px;
  background: #f8fafc;
  text-align: center;
}

.why-us h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #0f172a;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.why-card {
  background: #ffffff;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
}

.why-card i {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 20px;
}

.why-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.why-card p {
  font-size: 0.95rem;
  color: #475569;
}

/* ===== PILARES ===== */
.pillars {
  padding: 80px 20px;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.pillar-card {
  background: #1e40af;
  color: #fff;
  padding: 35px 25px;
  border-radius: 18px;
}

.pillar-card i {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

/* ===== CTA FINAL ===== */
.cta-section {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 90px 20px;
}

.cta-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: #ffffff;
}

.cta-container h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-container p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #e5e7eb;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #25d366;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn i {
  font-size: 1.4rem;
}

.cta-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  padding: 14px 16px;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
}


/* ===== PLANTILLAS PROFESIONAL ===== */

.plantillas-hero {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #fff;
  padding: 110px 20px;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero-badge {
  background: rgba(255,255,255,0.12);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
}

.plantillas-hero h1 {
  font-size: 3rem;
  margin: 20px 0 15px;
}

.plantillas-hero p {
  max-width: 700px;
  color: #cbd5f5;
}

.plantillas-intro {
  padding: 80px 20px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.catalogo {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.area {
  margin-bottom: 70px;
}

.area h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-left: 5px solid #0ea5e9;
  padding-left: 15px;
}

.grid-plantillas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.plantilla-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.plantilla-card h4 {
  margin-bottom: 10px;
  color: #020617;
}

.plantilla-card p {
  font-size: 0.95rem;
  color: #555;
}

.plantillas-cta {
  background: #f8fafc;
  padding: 90px 20px;
  text-align: center;
}

/* IMÁGENES DE PLANTILLAS */
.plantilla-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
/* GRID UNIFORME PARA TODAS LAS ÁREAS */
.grid-plantillas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* LIMITAR EL ANCHO MÁXIMO DE LAS TARJETAS */
.plantilla-card {
  max-width: 360px;
}
/* ==============================
   MODELOS NORMATIVOS – ALINEADO A LA IZQUIERDA
================================ */

.area:last-of-type .grid-plantillas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-content: start;
}

/* Forzamos que las tarjetas no se estiren */
.area:last-of-type .plantilla-card {
  max-width: 360px;
}
/* ==============================
   CTA FINAL – PLANTILLAS
================================ */

.plantillas-final-cta {
  background: linear-gradient(
    180deg,
    #1f3a44 0%,
    #162f38 50%,
    #0f2027 100%
  );
  padding: 90px 20px 80px;
  text-align: center;
  color: #ffffff;
}

.plantillas-final-cta .cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.plantillas-final-cta h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.plantillas-final-cta p {
  font-size: 17px;
  color: #d6e4ea;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* BOTÓN WHATSAPP */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.cta-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.45);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .plantillas-final-cta h2 {
    font-size: 26px;
  }

  .plantillas-final-cta p {
    font-size: 15px;
  }
}
/* ===============================
   VERSIÓN MÓVIL PREMIUM
   =============================== */

   @media (max-width: 768px) {

    /* CONTENEDORES GENERALES */
    section {
      padding: 40px 18px;
    }
  
    h1 {
      font-size: 28px;
      line-height: 1.3;
    }
  
    h2 {
      font-size: 24px;
    }
  
    h3 {
      font-size: 20px;
    }
  
    p {
      font-size: 15px;
      line-height: 1.6;
    }
  /* ===== MEJORAS HERO EN MÓVIL ===== */

.plantillas-hero {
  padding: 70px 20px 60px;
}

.plantillas-hero h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.plantillas-hero p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 95%;
}

.plantillas-hero .btn-primary {
  width: 100%;
  max-width: 280px;
  padding: 15px 0;
  margin-top: 25px;
}

    /* GRID CURSOS Y PLANTILLAS */
    .grid-cursos,
    .grid-plantillas {
      grid-template-columns: 1fr !important;
      gap: 22px;
    }
  
    /* CARDS */
    .curso-card,
    .plantilla-card {
      border-radius: 18px;
    }
  
    .curso-card img,
    .plantilla-card img {
      height: 190px;
      object-fit: cover;
    }
  
    /* BOTONES */
    .btn-primary {
      width: 100%;
      padding: 16px 0;
      font-size: 16px;
    }
  
    /* CTA FINAL */
    .plantillas-cta,
    .cta-final {
      text-align: center;
      padding: 60px 20px;
    }
  
    .plantillas-cta h2,
    .cta-final h2 {
      font-size: 26px;
    }
  
    .plantillas-cta p,
    .cta-final p {
      max-width: 100%;
    }
  
    /* PILARES / POR QUÉ ELEGIR */
    .pilares-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .pilar {
      padding: 24px;
    }
  
  }
/* =========================
   SECCIÓN CURSOS
========================= */

.cursos-section {
  padding: 80px 20px;
  background: #f5f7fb;
}

.cursos-section h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
  color: #0f2027;
}

/* GRID DE CURSOS */
.courses-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* CARD */
.course-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
}

/* IMAGEN */
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* CONTENIDO */
.course-card h3 {
  font-size: 1.2rem;
  margin: 20px 20px 10px;
  color: #203a43;
}

.course-card p {
  font-size: 0.95rem;
  margin: 0 20px 20px;
  color: #555;
  flex-grow: 1;
}

/* BOTÓN */
.course-card .btn-primary {
  margin: 0 20px 24px;
  text-align: center;
}
/* ===============================
   GRID GENERAL DE CURSOS
================================ */
.courses-grid,
.grid-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 30px;
}

/* ===============================
   TARJETA DE CURSO
================================ */
.course-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* ===============================
   IMAGEN DEL CURSO (CLAVE)
================================ */
.course-card img {
  width: 100%;
  height: 200px;              /* 🔥 TODAS MISMO TAMAÑO */
  object-fit: cover;          /* 🔥 NO SE DEFORMAN */
  display: block;
}

/* ===============================
   CONTENIDO
================================ */
.course-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.course-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  flex-grow: 1;
}

/* ===============================
   BOTÓN
================================ */
.course-content .btn-curso {
  margin-top: 16px;
  background: #fbbf24;       /* amarillo profesional */
  color: #111827;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.course-content .btn-curso:hover {
  background: #f59e0b;
  transform: scale(1.05);
}

/* ===============================
   SECCIONES (Estructuras, BIM, etc)
================================ */
.courses-section {
  margin-bottom: 80px;
}

.courses-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  border-left: 5px solid #2563eb;
  padding-left: 15px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .course-card img {
    height: 180px;
  }
}


/* ================= CURSO BASE ================= */

.curso-hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 120px 20px;
  color: #fff;
  text-align: center;
}

.curso-hero-content {
  max-width: 900px;
  margin: auto;
}

.curso-badge {
  display: inline-block;
  background: #1e90ff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 15px;
}

.curso-info {
  padding: 80px 20px;
  background: #f6f8fb;
}

.curso-info-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.curso-datos .dato {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.curso-dirigido {
  padding: 70px 20px;
  text-align: center;
}

.dirigido-grid {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}

.dirigido-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.curso-temario {
  padding: 80px 20px;
  background: #f6f8fb;
}

.temario-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 30px;
}

.modulo {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

.curso-metodologia {
  padding: 70px 20px;
  text-align: center;
}

.metodologia-grid {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
}

.metodo {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.curso-cta {
  background: linear-gradient(135deg, #1f4037, #99f2c8);
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 25px;
  background: #25d366;
  color: #fff;
  padding: 14px 34px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
}

.curso-footer {
  background: #0f2027;
  color: #ccc;
  text-align: center;
  padding: 20px;
}

/**curos ptar**//

/* ===== GRID DE CURSOS ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* ===== TARJETA DE CURSO ===== */
.course-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ===== IMÁGENES UNIFORMES ===== */
.course-card img {
  width: 100%;
  height: 180px;              /* 🔑 CLAVE */
  object-fit: cover;          /* 🔑 CLAVE */
  border-radius: 14px;
  margin-bottom: 15px;
}

/* ===== TÍTULO ===== */
.course-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 8px;
  min-height: 44px;           /* 🔑 IGUALA ALTURA */
}

/* ===== DESCRIPCIÓN ===== */
.course-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
  min-height: 40px;           /* 🔑 IGUALA ALTURA */
}

/* ===== BOTÓN ===== */
.course-card .btn-primary {
  background: #f6b81a;
  color: #000;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.course-card .btn-primary:hover {
  background: #e0a500;
}
/* ===============================
   CARRITO PREMIUM KEXHAR
================================ */

.cart-icon {
  position: fixed;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), #1e40af);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

#cart-count {
  background: var(--accent);
  color: #111;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* PANEL */
.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100vh;
  background: var(--glass);
  backdrop-filter: blur(18px);
  padding: 28px 24px;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.25);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

.cart-panel h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--dark);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 12px;
}

/* ITEMS */
#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

#cart-items li {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

#cart-items li:hover {
  transform: scale(1.02);
}

#cart-items button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* TOTAL */
.cart-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 18px 0 10px;
  display: flex;
  justify-content: space-between;
}

/* BOTONES */
.cart-panel .btn-primary {
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-panel .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.45);
}

.cart-panel .btn-danger {
  background: transparent;
  color: #dc2626;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,0.35);
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-panel .btn-danger:hover {
  background: rgba(220,38,38,0.08);
}

/* SCROLL */
#cart-items::-webkit-scrollbar {
  width: 6px;
}

#cart-items::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}
:root {
  --dark: #0f172a;
  --primary: #2563eb;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --glass: rgba(255, 255, 255, 0.85);
}

.course-actions {
  display: flex;
  flex-direction: column;
  align-items: center; /* CENTRADO REAL */
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

/* Botón añadir al carrito */
.btn-add-cart {
  margin: 0 auto; /* fuerza centrado */
  background: #f4f6fb;
  color: #1e1e1e;
  border: none;
  padding: 11px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.btn-add-cart:hover {
  background: #e9ecf4;
  transform: translateY(-2px);
}

.alerta-carrito {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #111;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: fadeInUp 0.3s ease;
  z-index: 9999;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GRID */
.grid-plantillas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

/* CARD */
.plantilla-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.plantilla-card:hover {
  transform: translateY(-8px);
}

/* IMAGEN */
.plantilla-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* CONTENIDO */
.card-content {
  padding: 28px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px; /* 🔥 ESTO CREA SEPARACIÓN UNIFORME */
  flex: 1;
}

/* TITULO */
.card-content h4 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

/* DESCRIPCIÓN */
.card-content p {
  color: #555;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1; /* 🔥 Empuja botones hacia abajo */
}

/* CONTENEDOR BOTONES */
.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

/* BOTÓN PRINCIPAL */
.btn-primary {
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 40px;
}

/* BOTÓN CARRITO */
.btn-add-cart {
  width: 100%;
  background: #f2f2f2;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-add-cart:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
}
.grid-plantillas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; /* separación uniforme */
  margin-top: 40px;
}
.plantilla-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
}

.plantilla-card:hover {
  transform: translateY(-5px);
}
.plantilla-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}



.btn-add-cart {
  background: #f3f3f3;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
}

.btn-add-cart:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
}
/* =====================================================
   MEJORAS DE ESPACIADO Y PROPORCIÓN – KEXHAR
   ===================================================== */


/* 1️⃣ AUMENTAR TAMAÑO GENERAL DE LAS CARDS */

.card {
  padding: 36px;              /* más espacio interno */
  border-radius: 24px;
  min-height: 420px;          /* un poco más altas */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}


/* 2️⃣ MEJOR ESPACIADO DEL TEXTO */

.card h3 {
  margin-bottom: 18px;
  line-height: 1.4;
}

.card p {
  margin-bottom: 22px;
  line-height: 1.7;           /* mejor interlineado */
  font-size: 15px;
  opacity: 0.95;
}


/* 3️⃣ CONTENEDOR DE BOTONES CON MÁS AIRE */

.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;                  /* más separación entre botones */
  margin-top: 25px;
}


/* 4️⃣ BOTÓN PRINCIPAL – VER PLANTILLA */

.btn-primary {
  padding: 16px 24px;         /* más alto */
  font-size: 16px;
  font-weight: 600;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(250, 204, 21, 0.35);
}


/* 5️⃣ BOTÓN AÑADIR AL CARRITO – MÁS PEQUEÑO PERO CON ESPACIO */

.btn-add-cart {
  padding: 13px 20px;
  font-size: 14px;
  border-radius: 35px;
  width: 88%;
  margin: 0 auto;
  background: #f4f6fb;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background: #e9ecf4;
  transform: translateY(-3px);
}
/* =====================================================
   KEXHAR – AJUSTE PREMIUM REAL DE TARJETAS
   (Sobrescribe todo lo anterior)
===================================================== */


/* ===============================
   GRID MÁS AMPLIO
================================ */
.grid-plantillas,
.courses-grid {
  gap: 50px !important; /* más separación entre tarjetas */
}


/* ===============================
   TARJETAS MÁS GRANDES
================================ */
.plantilla-card,
.course-card {
  padding: 30px !important;
  border-radius: 24px !important;
  min-height: 520px; /* 🔥 ahora sí más altas */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.plantilla-card:hover,
.course-card:hover {
  transform: translateY(-10px);
}


/* ===============================
   IMÁGENES MÁS PROPORCIONADAS
================================ */
.plantilla-card img,
.course-card img {
  height: 240px !important; /* más grandes */
  border-radius: 18px;
  margin-bottom: 25px;
}


/* ===============================
   CONTENIDO CON MÁS AIRE
================================ */
.card-content,
.course-content {
  display: flex;
  flex-direction: column;
  gap: 22px; /* 🔥 separación real */
  flex-grow: 1;
}


/* TITULOS */
.plantilla-card h4,
.course-card h4,
.course-content h4 {
  font-size: 20px !important;
  line-height: 1.4;
  margin-bottom: 5px;
}


/* DESCRIPCIÓN */
.plantilla-card p,
.course-card p,
.course-content p {
  font-size: 15px !important;
  line-height: 1.8 !important; /* 🔥 interlineado premium */
  color: #555;
}


/* ===============================
   CONTENEDOR BOTONES
================================ */
.card-buttons,
.course-actions {
  display: flex;
  flex-direction: column;
  gap: 22px !important; /* 🔥 más espacio entre botones */
  margin-top: 30px;
}


/* ===============================
   BOTÓN VER PLANTILLA
================================ */
.btn-primary {
  padding: 18px 28px !important;
  font-size: 16px !important;
  border-radius: 50px !important;
  width: 100%;
  text-align: center;
  font-weight: 600;
}


/* ===============================
   BOTÓN AGREGAR AL CARRITO
================================ */
.btn-add-cart {
  padding: 16px 24px !important;
  font-size: 15px !important;
  border-radius: 50px !important;
  width: 100%;
}


/* ===============================
   RESPONSIVE MÁS LIMPIO
================================ */
@media (max-width: 768px) {

  .plantilla-card,
  .course-card {
    min-height: auto;
    padding: 25px !important;
  }

  .plantilla-card img,
  .course-card img {
    height: 200px !important;
  }

}
/* ==============================
   CARD MEJORADA Y ESPACIADA
================================ */

.card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  text-align: center;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ESPACIADO DEL CONTENIDO */
.card h3 {
  font-size: 18px;
  margin: 18px 0 10px 0;
  line-height: 1.4;
}

.card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* CONTENEDOR BOTONES */
.card-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
}

/* ==============================
   BOTÓN VER PLANTILLA (PRINCIPAL)
================================ */

.btn-ver {
  background: #f4b400;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px; /* MÁS DELGADO */
  border-radius: 40px;
  width: 100%;
  max-width: 260px; /* ancho elegante */
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(244,180,0,0.25);
}

.btn-ver:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

/* ==============================
   BOTÓN AÑADIR AL CARRITO (SECUNDARIO)
================================ */

.btn-carrito {
  background: #f4b400;
  color: #000;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px; /* MÁS FINO */
  border-radius: 40px;
  width: 80%; /* MÁS PEQUEÑO QUE EL PRINCIPAL */
  max-width: 210px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(244,180,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-carrito:hover {
  background: #e0a800;
  transform: translateY(-2px);
}


/* =========================================
   FIX DEFINITIVO PLANTILLAS – LIMPIO
========================================= */

/* HERO MÁS COMPACTO */
.plantillas-hero {
  padding: 90px 20px 70px;
}

.plantillas-hero h1 {
  margin-bottom: 15px;
}

.plantillas-hero p {
  margin-bottom: 25px;
}

/* BOTÓN HERO AMARILLO */
.btn-premium {
  background: #f4b400;
  color: #000;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(244,180,0,0.3);
}

.btn-premium:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

/* INTRO MÁS CERCA DEL HERO */
.plantillas-intro {
  padding: 60px 20px 40px;
}

/* MENOS ESPACIO ANTES DE SANEAMIENTO */
.catalogo {
  padding-top: 40px;
}

/* GRID LIMPIO */
.grid-plantillas {
  gap: 30px;
}

/* TARJETA SIMPLE Y PROPORCIONADA */
.plantilla-card {
  padding: 24px;
  border-radius: 18px;
  min-height: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* IMAGEN */
.plantilla-card img {
  height: 200px;
  margin-bottom: 18px;
}

/* TITULO */
.plantilla-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* DESCRIPCIÓN */
.plantilla-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* BOTÓN VER PLANTILLA (MÁS DELGADO) */
.plantilla-card .btn-primary {
  background: #f4b400;
  color: #000;
  padding: 10px 22px;   /* MÁS CORTO */
  font-size: 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.plantilla-card .btn-primary:hover {
  background: #e0a800;
}

/* BOTÓN AÑADIR AL CARRITO (UN POCO MÁS PEQUEÑO) */
.plantilla-card .btn-add-cart {
  padding: 9px 18px;   /* MÁS FINO */
  font-size: 13px;
  border-radius: 30px;
  width: auto;
  align-self: flex-start;
}
/* ===== CENTRAR HERO PLANTILLAS ===== */

.plantillas-hero {
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontal */
  justify-content: center;  /* centra vertical si tiene altura */
  text-align: center;       /* centra texto */
}

.plantillas-hero p {
  margin-left: auto;
  margin-right: auto;
}

.plantillas-hero .btn-primary {
  margin-top: 25px;
}

