:root {
  --color-bg: #fff;
  --color-primary: #222;
  --color-text: #333;
  --color-text-muted: #888;
  --color-accent-yellow: #ffe066;
  --color-accent-yellow-hover: #ffd700;
  --font-title: 'Montserrat', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

/* RESET Y BASE */
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-size: 1.08em;
  line-height: 1.7;
  box-sizing: border-box;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5em;
}

main {
  padding-top: 2.5em;
  padding-bottom: 2.5em;
}

/* HERO HEADER UNIFICADO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.hero-logo {
  font-size: 4em;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.2em;
  text-transform: uppercase;
  color: #111;
  animation: fadeInDown 1.2s cubic-bezier(.77,0,.18,1) 0.1s both;
}
.hero-phrase {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 1.5em;
  color: #111;
  animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.5s both;
}
.hero-nav {
  display: flex;
  gap: 2.5em;
  justify-content: center;
  margin-bottom: 2.5em;
  animation: fadeIn 1.2s cubic-bezier(.77,0,.18,1) 1s both;
}
.hero-nav a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3em 1.2em;
  border-radius: 0.5em;
  transition: background 0.2s, color 0.2s;
}
.hero-nav a:hover {
  background: #111;
  color: #fff;
}
.cta-btn {
  background: #111;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.7em;
  padding: 0.7em 2.2em;
  font-size: 1.1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 2em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: inline-block;
}
.cta-btn:hover {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}
@keyframes fadeInDown { from { opacity:0; transform:translateY(-40px);} to { opacity:1; transform:translateY(0);} }
@keyframes fadeInUp { from { opacity:0; transform:translateY(40px);} to { opacity:1; transform:translateY(0);} }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(18px);} }

/* ESTRUCTURA MODERNA PARA SECCIONES Y FOOTER */
.section-title {
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #111;
  margin-bottom: 1.2em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
}
.servicios-section, .proyectos-section, .clientes-section, .testimonios-section, .contacto-section {
  background: #fff;
  border-radius: 2.5em;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.04);
  margin-bottom: 3.5em;
  padding: 3.5em 0 3em 0;
}
.servicios-grid, .proyectos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
  justify-content: center;
}
.servicio-card, .proyecto-card {
  background: #fff;
  border-radius: 1.5em;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
  padding: 2.2em 1.5em;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 260px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #111;
}
.servicio-card:hover, .proyecto-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
  transform: translateY(-6px) scale(1.03);
  border-color: #000;
}
.servicio-card h3, .proyecto-card h3 {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #111;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
  justify-content: center;
}
.cliente-card {
  background: #fff;
  border-radius: 1.5em;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
  padding: 1.5em 1.2em;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
  border: 1.5px solid #111;
}
.cliente-nombre {
  font-weight: 700;
  color: #111;
  font-size: 1.1em;
  margin-bottom: 0.3em;
  display: block;
  text-transform: uppercase;
}
.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
  justify-content: center;
}
.testimonio-card {
  background: #fff;
  border-radius: 1.5em;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
  padding: 2em 1.5em;
  max-width: 340px;
  font-style: italic;
  border-left: 5px solid #111;
  border: 1.5px solid #111;
}
.testimonio-card footer {
  font-style: normal;
  font-size: 0.95em;
  margin-top: 1em;
  color: #111;
}
.contacto-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
}
.contacto-lead {
  font-size: 1.3em;
  color: #111;
  margin-bottom: 0.5em;
  text-align: center;
  font-weight: 500;
}
.cta-btn {
  background: #111;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.7em;
  padding: 0.7em 2.2em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.cta-btn:hover {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}
.contacto-alt {
  color: #111;
  font-size: 1em;
  text-align: center;
}
footer {
  background: var(--color-bg);
  padding: 2.5rem 0 1rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  border-top: 1px solid #eee;
  font-size: 0.92rem; /* Footer general: fuente más pequeña */
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding: 2.5em 0 1.5em 0;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Footer nav: solo aquí el efecto tachado animado */
.footer-nav {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a, .cta-nav-btn {
  color: #fff;
  background: #111;
  border-radius: 0.5em;
  padding: 0.3em 1.2em;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}
.footer-nav a:hover, .cta-nav-btn:hover {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}

/* Footer legal y copy: más pequeño, sin efecto tachado */
.footer-legal a,
.footer-copy,
.footer-copy small {
  font-size: 0.8rem;
  text-decoration: none !important;
  position: static !important;
  background: none !important;
}

.footer-legal {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}
.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  transition: color 0.2s;
  font-weight: 400;
  text-transform: none;
}
.footer-legal a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-copy {
  margin-top: 1.1rem;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  color: var(--color-text-muted);
}
.todokul-link {
  color: #111;
  text-decoration: underline;
}

/* ESTILO LOGIN */
.login-box {
  background: #fff;
  border: 2.5px solid #111;
  border-radius: 2em;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.10), 0 1.5px 0 0 #111;
  padding: 2.8em 2.5em 2.2em 2.5em;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  transition: box-shadow 0.2s, border 0.2s;
  position: relative;
  overflow: hidden;
}
.login-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2em;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(34,34,34,0.07) 0%, rgba(0,0,0,0.02) 100%);
  z-index: 0;
}
.login-title {
  font-size: 1.5em;
  font-weight: 800;
  margin-bottom: 1.2em;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  z-index: 1;
}
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  z-index: 1;
}
.login-form label {
  font-weight: 600;
  margin-bottom: 0.3em;
  color: #111;
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 0.01em;
}
.login-form input {
  padding: 0.9em 1.1em;
  border: 1.5px solid #111;
  border-radius: 0.8em;
  font-size: 1.08em;
  background: #fafafa;
  color: #111;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
}
.login-form input:focus {
  border-color: #222;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10);
}
.login-btn {
  background: #111;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.8em;
  padding: 0.9em 2.5em;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
}
.login-btn:hover {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.12);
}
.login-horizontal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  gap: 4vw;
}
.login-logo-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 2em 2em 2em 0;
}
.login-logo-side .hero-logo {
  font-size: 3.5em;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #111;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.1;
}
@media (max-width: 900px) {
  .login-horizontal {
    flex-direction: column;
    gap: 2em;
    padding: 2em 0;
  }
  .login-logo-side {
    min-width: unset;
    padding: 0;
  }
  .login-logo-side .hero-logo {
    font-size: 2.2em;
    text-align: center;
  }
}
@media (max-width: 500px) {
  .login-box { min-width: 90vw; padding: 1.5em 0.5em; }
}

/* LOGIN PROFESIONAL AUDAGRAMA */
.login-agency-bg {
  min-height: 100vh;
  background: linear-gradient(120deg, #fff 60%, #f5f6fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-agency-box {
  background: #fff;
  border-radius: 2em;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.10);
  padding: 2.8em 2.5em 2.2em 2.5em;
  min-width: 350px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  margin: 2em 0;
  border: 2px solid #111;
  position: relative;
}
.login-agency-logo {
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #111;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  text-align: center;
  letter-spacing: 0.08em;
}
.login-agency-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 0.7em;
  color: #222;
  text-align: center;
  letter-spacing: 0.02em;
}
.login-agency-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
.login-agency-form label {
  font-weight: 600;
  margin-bottom: 0.3em;
  color: #222;
  text-transform: uppercase;
  font-size: 0.98em;
  letter-spacing: 0.01em;
}
.login-agency-form input {
  padding: 1em 1.1em;
  border: 1.5px solid #d1d5db;
  border-radius: 0.8em;
  font-size: 1.08em;
  background: #fafbfc;
  color: #111;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
}
.login-agency-form input:focus {
  border-color: #111;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10);
}
.login-agency-btn {
  background: #111;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.8em;
  padding: 1em 2.5em;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
  margin-top: 0.5em;
}
.login-agency-btn:hover {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.12);
}
.login-agency-error {
  color: #c00;
  font-size: 1em;
  margin-bottom: 1em;
  text-align: center;
}
.login-agency-microsoft {
  margin-top: 1.2em;
  text-align: center;
}
.login-agency-microsoft a {
  background: #2F2F6E;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1em;
  border-radius: 0.8em;
  padding: 0.9em 2em;
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.2em;
  transition: background 0.2s;
}
.login-agency-microsoft a:hover {
  background: #23235a;
}
@media (max-width: 500px) {
  .login-agency-box { min-width: 90vw; padding: 1.5em 0.5em; }
}
@media (max-width: 700px) {
  .logo h1 {
    font-size: 2em !important;
  }
  #cdmx-clock {
    font-size: 1em !important;
  }
}
@media (max-width: 900px) {
  .servicios-grid, .proyectos-grid {
    flex-direction: column;
    align-items: center;
  }
  .clientes-grid, .testimonios-grid {
    flex-direction: column;
    align-items: center;
  }
  .section-title {
    font-size: 2em;
  }
  .hero-logo { font-size: 2.2em; }
}