/* =========================================================
   MontadorPublici­dadMálaga – Landing (style.css)
   Premium, sobrio, orientado B2B, con menú hamburguesa y contacto directo
   ========================================================= */

/* -------------------- RESET & ROOT -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --color-bg: #fff;
  --color-bg-alt: #f5f5f5;
  --color-text: #111;
  --color-text-muted: #555;
  --color-accent: #e91e63;
  --color-accent-dark: #ad1457;
  --color-whatsapp: #25d366;
  --color-border: #ddd;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(0,0,0,0.08);
  --transition: 0.33s cubic-bezier(.6,.3,.23,.98);
  --icon-size: 2.6rem;
  --section-pad: 5rem 0;
  --nav-height: 64px;
}

/* -------------------- NAVBAR -------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid var(--color-bg-alt);
  min-height: var(--nav-height);
  box-shadow: 0 1px 16px rgba(0,0,0,0.02);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}
.nav-logo-text { font-weight: 700; letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  width: 28px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 3px;
  margin-bottom: 5px;
  transition: 0.3s;
}
.nav-toggle-bar:last-child { margin-bottom: 0; }

.nav-menu {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  list-style: none;
  margin: 0;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  font-size: 1.07rem;
  padding: 0.7em 0.5em;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link:focus {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    right: 0;
    width: 220px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(233,30,99,0.07);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
    transform: translateY(-35px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s, transform .28s;
    z-index: 25;
  }
  .nav-menu.nav-menu--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  .nav-menu li { width: 100%; }
  .nav-link {
    display: block;
    width: 100%;
    padding: 1.1em 1.5em;
    text-align: left;
    font-size: 1.08rem;
  }
}

/* -------------------- GLOBAL -------------------- */
html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}
body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  padding-top: var(--nav-height);
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus { color: var(--color-accent-dark); }

.text-accent { color: var(--color-accent); font-weight: 600; }

.container {
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
}
.section {
  padding: var(--section-pad);
}
.section--gray {
  background: var(--color-bg-alt);
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
  padding: 8rem 0 6rem;
  text-align: center;
  overflow: hidden;
}
.hero-bg-deco {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 120vw;
  height: 220px;
  transform: translateX(-50%);
  background: url('data:image/svg+xml;utf8,<svg width="1200" height="200" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="20" y="60" width="1160" height="16" rx="8" fill="%23e91e63" fill-opacity="0.08"/><rect x="60" y="110" width="1040" height="7" rx="3.5" fill="%2300bcd4" fill-opacity="0.05"/><circle cx="90" cy="70" r="7" fill="%23e91e63" fill-opacity="0.14"/><circle cx="1130" cy="140" r="11" fill="%23ad1457" fill-opacity="0.10"/></svg>') no-repeat center top/cover;
  pointer-events: none;
}
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.hero-claim {
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.3rem;
}
.hero p {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  justify-content: center;
}
.btn--big {
  font-size: 1.07rem;
  padding: 1.1rem 2.3rem;
}

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), filter var(--transition), transform var(--transition);
  box-shadow: 0 2px 14px rgba(233,30,99,0.05);
  line-height: 1.3;
}
.btn i { margin-right: 0.7em; font-size: 1.2em; vertical-align: -0.14em; }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  position: relative;
}
.btn--primary:hover, .btn--primary:focus {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 22px rgba(233,30,99,0.15);
}
.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  margin-right: 0.8rem;
}
.btn--secondary:hover, .btn--secondary:focus {
  background: var(--color-accent);
  color: #fff;
}
.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  transition: filter var(--transition), transform var(--transition);
}
.btn--whatsapp:hover, .btn--whatsapp:focus {
  filter: brightness(1.10) drop-shadow(0 4px 16px var(--color-whatsapp));
  color: #fff;
  transform: scale(1.045) translateY(-1px);
}

/* WhatsApp sticky floating button */
.whatsapp-sticky {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1000;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 28px rgba(37,211,102,0.22);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}
.whatsapp-sticky:hover, .whatsapp-sticky:focus {
  background: #21b76b;
  box-shadow: 0 8px 36px rgba(37,211,102,0.33);
  transform: scale(1.08);
}

/* -------------------- LISTS & BULLETS -------------------- */
ul.list--bullets {
  list-style: none;
  margin-top: 1.5rem;
}
ul.list--bullets li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.82rem;
}
ul.list--bullets li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
}

/* -------------------- CARDS Y GRID SERVICIOS -------------------- */
.grid--services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
  margin-top: 1.7rem;
}
.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2.2rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 18px 34px rgba(233,30,99,0.08);
}
.card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.62rem;
  font-weight: 600;
}
.card-icon {
  display: block;
  font-size: var(--icon-size);
  color: var(--color-accent);
  margin: 0 auto 1.2rem auto;
  opacity: 0.92;
}

/* -------------------- CONTACTO CARDS -------------------- */
.grid--contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.1rem;
  margin-top: 2.6rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(233,30,99,0.08);
  padding: 2.1rem 1.3rem 1.6rem 1.3rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 260px;
}
.contact-card:hover, .contact-card:focus-within {
  box-shadow: 0 8px 28px rgba(233,30,99,0.12);
  transform: translateY(-4px) scale(1.018);
}
.contact-card-icon {
  font-size: 2.6rem;
  color: var(--color-accent);
  margin-bottom: 1.1rem;
  opacity: 0.92;
}
.contact-card h3 {
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
}
.contact-card p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}
.contact-card-link {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.09rem;
  text-decoration: none;
  transition: color .2s;
  word-break: break-all;
}
.contact-card-link:hover, .contact-card-link:focus {
  text-decoration: underline;
  color: var(--color-accent-dark);
}
@media (max-width: 700px) {
  .grid--contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 180px; }
}

/* -------------------- WORKFLOW / PASOS -------------------- */
.workflow-steps-wrapper { position: relative; padding-left: 0.5rem; }
.workflow {
  list-style: none;
  counter-reset: steps;
  position: relative;
  z-index: 1;
}
.workflow li {
  counter-increment: steps;
  margin-bottom: 2.1rem;
  padding-left: 3.4rem;
  position: relative;
  color: var(--color-text-muted);
  min-height: 2.5rem;
}
.workflow li:last-child { margin-bottom: 0; }
.workflow li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  width: 2.1rem;
  height: 2.1rem;
  line-height: 2.1rem;
  text-align: center;
  border-radius: 50%;
  font-size: 1.04rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(233,30,99,0.07);
  z-index: 2;
}
.workflow-step-title {
  font-weight: 600;
  color: var(--color-text);
  display: block;
}
.workflow-step-desc {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.07rem;
}
.workflow-vertical-line {
  position: absolute;
  top: 1.05rem;
  left: 1.05rem;
  width: 4px;
  height: calc(100% - 2.3rem);
  background: linear-gradient(to bottom, var(--color-accent) 8%, #fff 55%, var(--color-accent-dark) 98%);
  border-radius: 4px;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
  animation: workflowLineGrow 1.7s cubic-bezier(.46,0,.58,1) 0.3s 1 both;
}
@keyframes workflowLineGrow {
  0%   { height: 0; opacity: 0; }
  30%  { opacity: 0.05; }
  100% { height: calc(100% - 2.3rem); opacity: 0.14; }
}

/* -------------------- FOOTER -------------------- */
.footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  margin-top: 3rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
.footer a {
  color: var(--color-accent);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer .legal {
  margin-top: 1.2rem;
  font-size: 0.99rem;
  color: #bdbdbd;
  line-height: 1.7;
}

/* -------------------- REVEAL ANIMATION -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.62s cubic-bezier(.47,.2,.3,1), transform 0.62s cubic-bezier(.47,.2,.3,1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* -------------------- ANIMACIONES/MICROINTERACCIONES -------------------- */
.cta-bounce {
  animation: ctaBounce 0.32s cubic-bezier(.5,1.8,.55,1) both;
}
@keyframes ctaBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08) translateY(-2px); }
  80%  { transform: scale(0.97) translateY(1px);}
  100% { transform: scale(1); }
}

/* -------------------- MEDIA QUERIES -------------------- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .form { padding: 1.3rem 0.9rem 0.7rem 0.9rem; }
}
@media (max-width: 700px) {
  .section, .section--gray { padding: 2.5rem 0.3rem; }
  .hero { padding: 6.2rem 0 3.6rem; }
  .footer { border-radius: 0; }
  .nav-logo { font-size: 1.07rem; }
}
@media (max-width: 600px) {
  .btn--secondary { margin-bottom: 0.85rem; margin-right: 0; }
  .workflow li { padding-left: 2.3rem; }
  .card { padding: 1.3rem 0.5rem 1rem; }
  .workflow-vertical-line { left: 0.9rem; width: 3px; }
  .whatsapp-sticky { right: 1.1rem; bottom: 1.1rem; width: 48px; height: 48px; font-size: 1.4rem; }
}

/* -------------------- ACCESIBILIDAD (FOCUS) -------------------- */
.btn:focus, .contact-card-link:focus, .nav-link:focus, .form__group input:focus, .form__group textarea:focus, .whatsapp-sticky:focus, .nav-toggle:focus {
  outline: 2.5px solid var(--color-accent-dark);
  outline-offset: 1.5px;
}

::-webkit-input-placeholder { color: #999; }
::-moz-placeholder { color: #999; }
:-ms-input-placeholder { color: #999; }
::placeholder { color: #999; }
