/*
Theme Name: Sin Moldes
Theme URI: https://sinmoldes.com
Author: Sin Moldes Corporación
Author URI: https://sinmoldes.com
Description: Tema oficial de Sin Moldes — Corporación Audiovisual y Terapéutica. Diseñado con marca propia en colores rojo, cian y amarillo. Incluye integración con Tutor LMS y sección para la app contable.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sinmoldes
Tags: education, business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════ VARIABLES DE MARCA ═══════ */
:root {
  --rojo: #e02e3b;
  --turquesa: #44c1d1;
  --amarillo: #fbcf09;
  --negro: #0a0a0a;
  --blanco: #ffffff;
  --gris: #f7f7f7;
  --gris-b: #e8e8e8;
  --texto: #1a1a1a;
  --suave: #666;
  --fh: 'newake', 'Quicksand', sans-serif;
  --fb: 'Quicksand', sans-serif;
}

/* ═══════ RESET BÁSICO ═══════ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.65;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════ NAVBAR ═══════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.96); backdrop-filter: blur(14px);
  border-bottom: 2.5px solid var(--rojo);
  padding: 0 5%; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 7px 14px; border-radius: 6px; transition: .2s;
}
.nav-links a:hover { color: var(--turquesa); background: rgba(68,193,209,0.1); }
.nav-cta { background: var(--rojo); color: #fff !important; border-radius: 7px; }
.nav-cta:hover { background: #c0242f !important; }

/* ═══════ HERO ═══════ */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff; padding: 110px 5% 60px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-orb-1 {
  position: absolute; top: -120px; right: -100px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(224,46,59,.22) 0%, transparent 70%);
  border-radius: 50%; animation: pulse 5s ease-in-out infinite;
}
.hero-orb-2 {
  position: absolute; bottom: -150px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(68,193,209,.18) 0%, transparent 70%);
  border-radius: 50%; animation: pulse 6s ease-in-out infinite reverse;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity:.6; } 50% { transform: scale(1.1); opacity:.9; } }
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-logo-big { width: 240px; max-width: 65vw; margin-bottom: 28px; animation: heroLogoFade .8s ease-out; }
@keyframes heroLogoFade { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(68,193,209,.13); border: 1px solid var(--turquesa);
  color: var(--turquesa); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 22px;
}
.hero-h1 {
  font-family: var(--fh); font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.05; margin: 0 0 22px;
}
.hero-h1 .r { color: var(--rojo); }
.hero-h1 .t { color: var(--turquesa); }
.hero-sub {
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.85); margin-bottom: 32px;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════ BOTONES ═══════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 14px 26px; border: none; cursor: pointer;
  transition: .2s; border-radius: 8px;
}
.btn-r { background: var(--rojo); color: #fff; }
.btn-r:hover { background: #c0242f; transform: translateY(-2px); }
.btn-t { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-t:hover { border-color: var(--turquesa); color: var(--turquesa); }

/* ═══════ TARJETA INSTAGRAM ═══════ */
.hero-visual { display: flex; justify-content: center; }
.hero-card-frame { position: relative; max-width: 460px; }
.ig-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.ig-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.ig-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ig-user { font-weight: 700; font-size: 15px; color: #1a1a1a; }
.ig-loc { font-size: 12px; color: #888; margin-top: 2px; }
.ig-feed { background: #fafafa; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.ig-btn {
  display: block; text-align: center;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 14px; text-transform: uppercase; letter-spacing: 1px;
}

/* ═══════ SECCIONES GENERALES ═══════ */
section { padding: 90px 5%; }
.sec-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 18px;
}
.sec-h2 {
  font-family: var(--fh); font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.05; margin: 0 0 24px;
}
.sec-p { font-size: 15px; line-height: 1.8; color: var(--texto); margin-bottom: 16px; }

/* ═══════ QUIÉNES SOMOS ═══════ */
.quienes { background: #fff; }
.quienes-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.qs-logo { width: 160px; max-width: 40vw; margin-bottom: 18px; }
.team-grid { display: grid; gap: 18px; }
.team-card { background: #fff; border: 1px solid var(--gris-b); border-radius: 14px; padding: 24px; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }
.team-nombre { font-weight: 700; font-size: 17px; color: var(--texto); margin-bottom: 4px; }
.team-rol { font-size: 12px; color: var(--rojo); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 12px; }
.team-desc { font-size: 13px; line-height: 1.7; color: var(--suave); }
.herr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.herr-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--gris); border-radius: 8px; font-size: 13px; font-weight: 600; }
.herr-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ═══════ CURSOS (TUTOR LMS) ═══════ */
.cursos { background: var(--gris); }
.cursos-inner { max-width: 1200px; margin: 0 auto; }
.cursos-head { text-align: center; margin-bottom: 50px; }
.cursos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.curso-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06); transition: .2s;
}
.curso-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.curso-img { width: 100%; height: 180px; background: linear-gradient(135deg, var(--rojo), var(--turquesa)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; }
.curso-img img { width: 100%; height: 100%; object-fit: cover; }
.curso-body { padding: 20px; }
.curso-cat { font-size: 11px; color: var(--rojo); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.curso-titulo { font-weight: 700; font-size: 16px; color: var(--texto); margin-bottom: 8px; }
.curso-desc { font-size: 13px; color: var(--suave); margin-bottom: 14px; }
.curso-precio { font-weight: 700; color: var(--rojo); font-size: 18px; margin-bottom: 12px; }
.curso-btn {
  display: block; text-align: center;
  background: var(--rojo); color: #fff;
  font-weight: 700; padding: 12px; border-radius: 8px;
  text-transform: uppercase; font-size: 12px; letter-spacing: 1px;
}
.curso-btn:hover { background: #c0242f; }
.cursos-vacio {
  text-align: center; padding: 50px 20px;
  background: #fff; border: 2px dashed var(--gris-b); border-radius: 14px;
}

/* ═══════ APP CONTABLE ═══════ */
.app-section { background: #fff; }
.app-hero {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.app-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.app-feat { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.app-feat-icon { width: 24px; height: 24px; background: var(--turquesa); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex-shrink: 0; }
.app-mockup {
  background: #1a1a1a; border-radius: 24px; padding: 24px;
  text-align: center; color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

/* ═══════ CTA FINAL ═══════ */
.cta {
  background: linear-gradient(135deg, var(--rojo), #c0242f);
  color: #fff; text-align: center; padding: 100px 5%; position: relative; overflow: hidden;
}
.cta-logo { width: 180px; max-width: 50vw; margin: 0 auto 28px; opacity: 0.95; }
.cta h2 { font-family: var(--fh); font-size: clamp(32px, 5vw, 60px); font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: 2px; margin-bottom: 16px; }
.cta p { font-size: 16px; opacity: 0.95; max-width: 600px; margin: 0 auto 30px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════ FOOTER ═══════ */
.footer { background: #0a0a0a; color: rgba(255,255,255,.7); padding: 70px 5% 30px; }
.ft-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ft-logo { margin-bottom: 20px; }
.ft-logo img { height: 60px; opacity: 0.9; }
.ft-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.ft-col a { display: block; color: rgba(255,255,255,.65); font-size: 13px; padding: 4px 0; transition: .2s; }
.ft-col a:hover { color: var(--turquesa); }
.ft-bottom { max-width: 1200px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.ft-bars { display: flex; height: 5px; margin-top: 30px; }
.ft-bars span:nth-child(1) { flex: 2; background: var(--rojo); }
.ft-bars span:nth-child(2) { flex: 1; background: var(--turquesa); }
.ft-bars span:nth-child(3) { flex: 1; background: var(--amarillo); }
.ft-bars span:nth-child(4) { flex: 1; background: #000; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
  .hero-inner, .quienes-inner, .app-hero { grid-template-columns: 1fr; gap: 40px; }
  .nav { padding: 0 4%; }
  .nav-links { display: none; }
  .ft-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 5%; }
}
@media (max-width: 600px) {
  .ft-inner { grid-template-columns: 1fr; }
  .herr-grid, .app-features { grid-template-columns: 1fr; }
}

/* ═══════ INTEGRACIÓN WP ═══════ */
.wp-content { max-width: 1100px; margin: 0 auto; padding: 50px 5%; }
.wp-content h1, .wp-content h2, .wp-content h3 { font-family: var(--fh); }
.wp-content img { border-radius: 8px; margin: 20px 0; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 20px auto; }

/* ═══════ TUTOR LMS OVERRIDES ═══════ */
.tutor-courses-wrap { font-family: var(--fb); }
.tutor-btn-primary { background: var(--rojo) !important; }
.tutor-btn-primary:hover { background: #c0242f !important; }

/* ═══════ GALERÍA ═══════ */
.galeria { background: #fff; }
.galeria-inner { max-width: 1200px; margin: 0 auto; }
.galeria-head { text-align: center; margin-bottom: 50px; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.galeria-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: .25s;
  position: relative;
}
.galeria-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-item-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 42px;
}
.galeria-item-placeholder.c1 { background: linear-gradient(135deg, var(--rojo), #c0242f); }
.galeria-item-placeholder.c2 { background: linear-gradient(135deg, var(--turquesa), #2a9db0); }
.galeria-item-placeholder.c3 { background: linear-gradient(135deg, var(--amarillo), #d97706); color: #1a1a1a; }
.galeria-item-placeholder.c4 { background: linear-gradient(135deg, #1a1a1a, #444); }
.galeria-item-placeholder.c5 { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.galeria-item-placeholder.c6 { background: linear-gradient(135deg, var(--rojo), var(--amarillo)); }
.galeria-cta { text-align: center; margin-top: 32px; }

/* ═══════ TESTIMONIOS ═══════ */
.testimonios { background: var(--gris); }
.testimonios-inner { max-width: 1200px; margin: 0 auto; }
.testimonios-head { text-align: center; margin-bottom: 50px; }
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.testimonio-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--gris-b);
  position: relative;
}
.testimonio-quote {
  font-size: 42px;
  line-height: 1;
  font-family: serif;
  margin-bottom: 8px;
  font-weight: 700;
}
.testimonio-quote.c1 { color: var(--turquesa); }
.testimonio-quote.c2 { color: var(--amarillo); }
.testimonio-quote.c3 { color: var(--rojo); }
.testimonio-text {
  font-size: 14px; line-height: 1.7;
  color: var(--texto); margin: 0 0 18px;
  font-style: italic;
}
.testimonio-pie {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.testimonio-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.testimonio-avatar.c1 { background: linear-gradient(135deg, var(--rojo), #ff6b7a); }
.testimonio-avatar.c2 { background: linear-gradient(135deg, var(--turquesa), #2a9db0); }
.testimonio-avatar.c3 { background: linear-gradient(135deg, var(--amarillo), #d97706); }
.testimonio-nombre { font-weight: 700; font-size: 14px; color: var(--texto); }
.testimonio-rol { font-size: 11px; color: var(--suave); margin-top: 2px; }

/* ═══════ BLOG ═══════ */
.blog { background: #fff; }
.blog-inner { max-width: 1200px; margin: 0 auto; }
.blog-head { text-align: center; margin-bottom: 50px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: #fff;
  border: 1px solid var(--gris-b);
  border-radius: 14px;
  overflow: hidden;
  transition: .2s;
  display: block;
  color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.blog-card-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--rojo), var(--turquesa));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 56px;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card-fecha {
  font-size: 11px; color: var(--rojo);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700; margin-bottom: 8px;
}
.blog-card-titulo {
  font-weight: 700; font-size: 17px;
  color: var(--texto); margin: 0 0 10px;
  line-height: 1.4;
}
.blog-card-excerpt {
  font-size: 13px; color: var(--suave);
  line-height: 1.6; margin: 0 0 14px;
}
.blog-card-leer {
  font-size: 12px; color: var(--rojo);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-vacio {
  text-align: center; padding: 50px 20px;
  background: var(--gris); border-radius: 14px;
}

/* ═══════ FORMULARIO DE CONTACTO ═══════ */
.contacto { background: var(--gris); }
.contacto-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center;
}
.contacto-info h2 { margin-top: 0; }
.contacto-data {
  display: flex; flex-direction: column; gap: 12px; margin-top: 24px;
}
.contacto-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: #fff;
  border-radius: 10px; border: 1px solid var(--gris-b);
  text-decoration: none; color: var(--texto);
  font-weight: 600; font-size: 14px;
  transition: .2s;
}
.contacto-item:hover { border-color: var(--turquesa); transform: translateX(4px); }
.contacto-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contacto-icon.wa { background: #25d366; color: white; }
.contacto-icon.em { background: var(--turquesa); color: white; }
.contacto-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }

.contacto-form {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--gris-b);
}
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--suave); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.cf-field input, .cf-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gris-b); border-radius: 8px;
  font-size: 14px; font-family: inherit;
  transition: .2s; box-sizing: border-box; background: #fff;
}
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--turquesa);
}
.cf-field textarea { min-height: 100px; resize: vertical; }
.cf-submit {
  width: 100%; padding: 14px;
  background: var(--rojo); color: #fff; border: none;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; transition: .2s;
  font-family: inherit;
}
.cf-submit:hover { background: #c0242f; transform: translateY(-2px); }
.cf-msg-ok, .cf-msg-err {
  padding: 12px 16px; border-radius: 8px;
  margin-bottom: 16px; font-size: 13px;
  display: none;
}
.cf-msg-ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.cf-msg-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ═══════ BOTÓN WHATSAPP FLOTANTE ═══════ */
.wa-floating {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  cursor: pointer; z-index: 999;
  transition: .25s;
  text-decoration: none;
  animation: waPulse 2s infinite;
}
.wa-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.wa-floating svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.15); }
}
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: .25s;
  pointer-events: none;
}
.wa-floating:hover .wa-tooltip { opacity: 1; right: 75px; }

@media (max-width: 700px) {
  .contacto-inner { grid-template-columns: 1fr; gap: 30px; }
  .wa-floating { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-floating svg { width: 28px; height: 28px; }
}
