:root {
  --primary: #14b7e6;
  --secondary: #c638a3;
  --dark: #0b1324;
  --muted: #6b7280;
  --light: #f5fbff;
  --success: #21c36b;
  --card: #ffffff;
  --radius: 16px;
  /* Paleta del hero para igualar la referencia */
  --hero-left: #12b4c4;      /* turquesa izquierda */
  --hero-right: #c34eb3;     /* magenta derecha */
  --wedge-top: #34c6cf;      /* parte alta del wedge */
  --wedge-bottom: #0ca6be;   /* parte baja del wedge */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #111827;
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-icon { display: none; }
.brand-name { display: none; }
.brand-tag { display: none; }
.brand-logo { height: 52px; width: auto; display: block; }
.menu { display: flex; gap: 28px; }
.menu a { color: #14b7e6; text-decoration: none; margin-left: 0; font-weight: 600; }
.menu a:hover { color: #0ea5cf; }

/* HERO */
.hero {
  position: relative;
  color: #fff;
  /* Fondo exacto provisto (incluye el degradado y corte) */
  background-color: var(--hero-left);
  background-image: url('/assets/fondohero.jpeg'), url('/assets/assets/fondohero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 40px 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: center;
  min-height: 720px;
  position: relative;
  z-index: 3; /* por encima de wedge y de la chica */
}
.hero-copy h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  line-height: 1.1;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}
.hero .lead { color: #eaf6ff; max-width: 560px; margin-bottom: 24px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stars { letter-spacing: 3px; opacity: .9; }
.notes { color: #eaf6ff; flex-basis: 100%; margin-top: 6px; }

/* Botón del hero como en la referencia (blanco sobre degradado) */
.hero .btn-primary { background: #ffffff; color: #0a7dae; border: 2px solid rgba(255,255,255,.15); }
.hero .btn-primary:hover { filter: brightness(1.02); transform: translateY(-1px); }

/* Wedge turquesa detrás de la chica */
.hero::before {
  /* Se desactiva el wedge generado por CSS porque el fondo ya lo incluye */
  display: none !important;
}

/* Chica recortada sobre el wedge (desactivada por solicitud) */
.hero::after {
  content: none;
  display: none !important;
}

/* Ocultamos el antiguo contenedor de la imagen */
.hero-visual { display: none !important; }
.wedge-bg {
  position: absolute; inset: -40px 0 -40px auto; width: 92%;
  background: linear-gradient(135deg, #0190c0, #c53aa8);
  clip-path: polygon(18% 0%, 100% 0, 100% 100%, 0% 100%);
  filter: saturate(120%);
  z-index: 1;
}
.wedge-photo {
  position: absolute; inset: -40px 0 -40px auto; width: 90%;
  /* Intentamos primero /assets/hero.png (carpeta assets/ real) y como fallback /assets/assets/hero.png */
  background-image: url('/assets/hero.png'), url('/assets/assets/hero.png');
  background-size: cover; background-position: 50% 50%;
  background-repeat: no-repeat;
  clip-path: polygon(12% 0%, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(20,183,230,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(20,183,230,.35); }
.btn-outline { border: 2px solid #d1d5db; color: #111; background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ABOUT */
.about { padding: 72px 0; background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
}
.about-text h2 { font-size: clamp(28px, 4.2vw, 48px); margin: 0 0 12px; }
.about-text h2 span { font-weight: 800; }
.about-text p { color: #374151; text-align: justify; }
.about-media { position: relative; }
.about-photo {
  height: 380px; border-radius: 18px; overflow: hidden;
  /* Usamos <img> dentro para asegurar carga; quitamos fondo por confusión de rutas */
  background: none;
  filter: saturate(105%);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: #e6f2fb; color: #1f2a37; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
}

/* SERVICES */
.services { background: #eaf7ff; padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.section-head p { color: #475569; margin: 0; font-size: 15px; }

.service-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto;
}
.service-card {
  position: relative; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.service-image {
  width: 100%; height: 200px; background-size: cover; background-position: center;
}
.service-card.service-a .service-image { 
  background-image: url('/assets/27%20oct%202025,%2015_23_55.png');
}
.service-card.service-b .service-image { 
  background-image: url('/assets/ChatGPT%20Image%2027%20oct%202025,%2015_26_31.png');
}
.service-card .card-info {
  padding: 24px 20px; text-align: center; background: #fff;
}
.service-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #111827; }
.service-card p { margin: 0; color: #4b5563; font-size: 14px; line-height: 1.5; }

/* PRODUCTS */
.products { background: #fff; padding: 80px 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  perspective: 1000px;
  cursor: pointer;
  height: 400px;
}

.product-flip-container {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.product-card.flipped .product-flip-container {
  transform: rotateY(180deg);
}

.product-front,
.product-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.product-front {
  transform: rotateY(0deg);
}

.product-back {
  transform: rotateY(180deg);
}

.product-front img,
.product-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
}

.product-card:hover .product-flip-container {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* CONTACT */
.contact { background: #fff; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.contact-photo {
  height: 380px; border-radius: 18px; background-image: url('/assets/CONTACTO.webp');
  background-size: cover; background-position: center; filter: saturate(105%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.contact-form { background: #fff; padding: 10px; }
.contact-form header h2 { margin: 0 0 4px; }
.contact-form header p { margin: 0 0 14px; color: #64748b; font-size: 14px; }
.contact-form label { display: grid; gap: 6px; margin-bottom: 12px; }
.contact-form input, .contact-form textarea {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; font: inherit; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20,183,230,.15); }

/* FOOTER */
.footer { background: #0f172a; color: #e2e8f0; padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.footer h4 { margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { color: #cbd5e1; margin-bottom: 6px; }
.footer a { color: #cbd5e1; text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--primary); }
.newsletter { display: flex; gap: 10px; }
.newsletter input { flex: 1; border-radius: 999px; border: 1px solid #334155; background: #111827; color: #e2e8f0; padding: 10px 14px; }
.newsletter .btn-primary { background: var(--primary); }
.copyright { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 18px; }

/* WhatsApp */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; background: var(--success); color: #fff;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; box-shadow: 0 12px 32px rgba(33,195,107,.35);
  z-index: 9999; /* aseguramos que siempre esté por encima del hero */
}
.whatsapp:hover { filter: brightness(1.05); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .3s; background: #111827; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero::after { display: none !important; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-photo { height: 240px; }
  .products-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { height: 350px; }
}
