/* =====================================================
   DUPLO CREATIVO — Estilos principales
   ===================================================== */

/* ===== VARIABLES ===== */
:root {
  --magenta:        #a60364;
  --magenta-dark:   #850050;
  --magenta-light:  #c0047a;
  --blanco:         #ffffff;
  --oscuro:         #1a1a1a;
  --gris-claro:     #f5f5f7;
  --gris:           #888888;
  --sombra:         0 4px 24px rgba(0, 0, 0, 0.10);
  --sombra-hover:   0 10px 32px rgba(166, 3, 100, 0.22);
  --radio:          12px;
  --t:              0.3s ease;
  --fuente:         'Montserrat', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fuente);
  color: var(--oscuro);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== UTILIDADES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  text-align: center;
  color: var(--gris);
  max-width: 580px;
  margin: 0 auto 52px;
}

/* ===== BOTÓN PRINCIPAL ===== */
.btn-primary {
  display: inline-block;
  background: var(--magenta);
  color: var(--blanco);
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--fuente);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--magenta);
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--magenta-dark);
  border-color: var(--magenta-dark);
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--t), padding var(--t), box-shadow var(--t);
}

#navbar.scrolled {
  background: rgba(20, 20, 20, 0.96);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--blanco);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  transition: color var(--t);
  position: relative;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--magenta-light);
  transition: width var(--t);
}

.nav-links a:not(.btn-nav):hover {
  color: #f0a0cc;
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--magenta) !important;
  color: var(--blanco) !important;
  padding: 9px 22px !important;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--magenta);
  transition: background var(--t), border-color var(--t), transform var(--t) !important;
}

.btn-nav:hover {
  background: var(--magenta-dark) !important;
  border-color: var(--magenta-dark) !important;
  transform: translateY(-1px) !important;
}

.btn-nav::after {
  display: none !important;
}

/* Hamburguesa mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO / CARRUSEL ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.slide-1 { background-image: url('../img/slide1.jpg'); }
.slide-2 { background-image: url('../img/slide2.jpg'); }
.slide-3 { background-image: url('../img/slide3.jpg'); }

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.78) 0%,
    rgba(166, 3, 100, 0.32) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--blanco);
  z-index: 2;
}

.hero-logo {
  height: 96px;
  width: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  animation: fadeDown 1s ease both;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  animation: fadeUp 1s ease 0.2s both;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-content h1 span {
  color: #f2aace;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.88;
  max-width: 520px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-content .btn-primary {
  animation: fadeUp 1s ease 0.6s both;
  font-size: 1.05rem;
  padding: 16px 44px;
}

/* Dots del carrusel */
.carousel-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background var(--t), transform var(--t), border-color var(--t);
}

.carousel-dot.active {
  background: var(--blanco);
  border-color: var(--blanco);
  transform: scale(1.3);
}

/* ===== SECCIÓN VIDEO ===== */
#video {
  background: var(--oscuro);
  padding: 88px 0;
  color: var(--blanco);
}

#video .section-title {
  color: var(--blanco);
  margin-bottom: 44px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
  background: #0d0d0d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#videoContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#videoContainer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #2a0a1e 100%);
  border: 2px dashed rgba(166, 3, 100, 0.35);
}

.video-placeholder-inner {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.video-placeholder-inner svg {
  width: 72px;
  height: 72px;
  color: var(--magenta);
  margin-bottom: 18px;
  opacity: 0.75;
}

.video-placeholder-inner p {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.video-placeholder-inner small {
  font-size: 0.82rem;
  opacity: 0.4;
  display: block;
  margin-top: 8px;
  font-weight: 300;
}

/* ===== SECCIÓN SERVICIOS ===== */
#servicios {
  padding: 88px 0;
  background: var(--blanco);
}

#servicios .section-title { color: var(--oscuro); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.servicio-card {
  background: var(--blanco);
  border: 1px solid #ebebeb;
  border-radius: var(--radio);
  padding: 40px 28px 32px;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  box-shadow: var(--sombra);
}

.servicio-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(166, 3, 100, 0.3);
}

.servicio-icon {
  width: 60px;
  height: 60px;
  color: var(--magenta);
  margin: 0 auto 22px;
  transition: transform var(--t);
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.12);
}

.servicio-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--oscuro);
  line-height: 1.4;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.65;
}

/* ===== SECCIÓN CLIENTES ===== */
#clientes {
  padding: 88px 0;
  background: var(--gris-claro);
}

#clientes .section-title { color: var(--oscuro); }

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  align-items: center;
  max-width: 860px;
  margin: 48px auto 0;
}

.cliente-logo {
  width: 100%;
  max-width: 180px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
  filter: grayscale(100%) opacity(0.45);
  transition: filter var(--t), transform var(--t);
}

.cliente-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

/* ===== SECCIÓN CONTACTO ===== */
#contacto {
  padding: 88px 0;
  background: var(--oscuro);
  color: var(--blanco);
}

#contacto .section-title   { color: var(--blanco); }
#contacto .section-subtitle { color: rgba(255, 255, 255, 0.55); }

#formContacto {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--blanco);
  font-family: var(--fuente);
  font-size: 0.95rem;
  transition: border-color var(--t), background var(--t);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-group select {
  color: rgba(255, 255, 255, 0.65);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.form-group select option {
  background: #2a2a2a;
  color: var(--blanco);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: rgba(166, 3, 100, 0.09);
}

.form-group input.campo-error,
.form-group select.campo-error,
.form-group textarea.campo-error {
  border-color: #e74c3c;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  color: #ff7070;
  font-size: 0.78rem;
  margin-top: 5px;
  display: none;
  font-weight: 500;
}

.form-error.visible {
  display: block;
}

.form-submit-wrap {
  text-align: center;
  margin-top: 10px;
}

.btn-submit {
  min-width: 200px;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Honeypot: visualmente oculto, los bots no lo detectan */
.campo-trampa {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ===== FOOTER ===== */
footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.84rem;
  font-weight: 300;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.modal-box {
  position: relative;
  background: var(--blanco);
  border-radius: 18px;
  padding: 52px 44px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.modal-icon.success { background: #e8f5e9; }
.modal-icon.success svg { color: #2e7d32; width: 38px; height: 38px; }

.modal-icon.error { background: #fce4ec; }
.modal-icon.error svg { color: #c62828; width: 38px; height: 38px; }

.modal-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--oscuro);
  margin-bottom: 12px;
}

.modal-box p {
  color: var(--gris);
  margin-bottom: 30px;
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.82) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Fade-in al hacer scroll */
.fade-in {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Menú hamburguesa */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 32px 48px;
    gap: 28px;
    transition: right var(--t);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  /* Formulario */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Servicios */
  .servicios-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Modal */
  .modal-box {
    padding: 40px 28px;
  }
}

@media (max-width: 560px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .hero-logo {
    height: 70px;
  }

  .hero-content .btn-primary {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
}
