/* MD Soluciones Renovables — página de presentación (web en construcción) */
:root {
  --negro: #151516;
  --carbon: #2a2b2d;
  --gris: #b9babd;
  --blanco: #ffffff;
  --rosa: #e9475b;
  --magenta: #d5508d;
  --degradado: linear-gradient(90deg, var(--rosa), var(--magenta));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--blanco);
  background: var(--negro);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--rosa); outline-offset: 4px; border-radius: 4px; }

/* Portada: paisaje renovable oscurecido con el mensaje en el centro */
.portada {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 72px;
  background:
    linear-gradient(180deg, rgba(21, 21, 22, 0.78) 0%, rgba(21, 21, 22, 0.62) 45%, rgba(21, 21, 22, 0.92) 100%),
    url(/img/fondo.jpg) center / cover no-repeat;
}
.contenido {
  width: 100%;
  max-width: 760px;
  text-align: center;
}
.logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}
h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.aviso {
  display: inline-block;
  margin: 18px 0 26px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--degradado);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.frase {
  margin: 0 auto;
  max-width: 34em;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}
.frase.secundaria {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 400;
  color: #dcdcde;
}

/* Datos de contacto */
.contacto {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contacto a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contacto a:hover { background: rgba(233, 71, 91, 0.22); border-color: var(--rosa); }
.contacto svg {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--degradado);
  fill: var(--blanco);
}
.contacto li:last-child { flex-basis: 100%; display: flex; justify-content: center; }

/* Pie con la onda rosa y gris de la imagen de marca */
.pie { position: relative; background: var(--carbon); }
.ola {
  position: absolute;
  left: 0;
  right: 0;
  top: -46px;
  height: 48px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 34C240 6 480 2 760 22s520 22 680-4v30H0z' fill='%23e9475b'/%3E%3Cpath d='M0 44C260 20 520 14 780 30s500 18 660 0v18H0z' fill='%232a2b2d'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.pie-texto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 22px;
  font-size: 0.85rem;
  color: var(--gris);
}
.pie-texto p { margin: 0; }
.grupo { display: flex; align-items: center; gap: 8px; font-style: italic; }
.grupo img { width: 96px; height: auto; display: block; }

@media (max-width: 640px) {
  .portada { padding: 40px 16px 64px; background-image: linear-gradient(180deg, rgba(21, 21, 22, 0.8) 0%, rgba(21, 21, 22, 0.66) 45%, rgba(21, 21, 22, 0.94) 100%), url(/img/fondo-movil.jpg); }
  .logo { width: 150px; margin-bottom: 22px; }
  .contacto { flex-direction: column; align-items: stretch; }
  .contacto li:last-child { display: block; }
  .contacto a { width: 100%; }
  .pie-texto { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .contacto a { transition: none; } }
.autor { color: var(--blanco); }
.autor:hover { color: var(--rosa); }
