/*
Theme Name:   El Menos Común (Flatsome hijo)
Theme URI:    https://www.elmenoscomun.es
Description:  Estilos de la web migrada desde Lovable: tipografía Plus Jakarta Sans, colores corporativos y utilidades para UX Builder.
Author:       El Menos Común
Template:     flatsome
Version:      1.0.0
Text Domain:  el-menos-comun-child
*/

/* -----------------------------------------------------------------------------
   Variables de diseño (equivalentes a index.css / Tailwind del proyecto React)
   ----------------------------------------------------------------------------- */
:root {
  --emc-bg: #f5f5f5;
  --emc-fg: #1a1a1a;
  --emc-fg-muted: rgba(26, 26, 26, 0.7);
  --emc-fg-soft: rgba(26, 26, 26, 0.6);
  --emc-primary: #f4981a;
  --emc-primary-dark: #e08910;
  --emc-accent: #fecd4d;
  --emc-dark-bg: #1a1a1a;
  --emc-dark-card: #2a2a2a;
  --emc-white-90: rgba(255, 255, 255, 0.9);
  --emc-white-60: rgba(255, 255, 255, 0.6);
  --emc-white-40: rgba(255, 255, 255, 0.4);
  --emc-white-10: rgba(255, 255, 255, 0.1);
  --emc-radius-lg: 1rem;
  --emc-radius-full: 9999px;
  --emc-container: 80rem;
}

/* Tipografía global (carga en functions.php con Google Fonts) */
body,
button,
input,
select,
textarea {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

/* Fondo y texto base si quieres alinear con la landing */
.emc-page-bg {
  background-color: var(--emc-bg);
  color: var(--emc-fg);
}

/* -----------------------------------------------------------------------------
   Cabecera fija tipo Lovable (opcional: añade clase al bloque HTML o sección)
   ----------------------------------------------------------------------------- */
.emc-header-bar {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.emc-nav-link {
  color: rgba(26, 26, 26, 0.7) !important;
  transition: color 0.2s ease;
}

.emc-nav-link:hover {
  color: var(--emc-primary) !important;
}

/* -----------------------------------------------------------------------------
   Hero: vídeo + gradiente (contenedor para HTML personalizado)
   ----------------------------------------------------------------------------- */
.emc-hero-video-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.emc-hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emc-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(244, 152, 26, 0.9) 0%,
    rgba(254, 205, 77, 0.8) 100%
  );
  z-index: 1;
}

.emc-hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  max-width: var(--emc-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.emc-hero-title {
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.emc-hero-lead {
  color: var(--emc-white-90);
  font-size: 0.875rem;
  line-height: 1.625;
}

.emc-hero-bottom {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 4rem 1.5rem;
}

.emc-hero-bottom-inner {
  max-width: var(--emc-container);
  margin: 0 auto;
}

.emc-hero-bottom-text {
  color: rgba(26, 26, 26, 0.8);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* -----------------------------------------------------------------------------
   Botones CTA (clases para enlaces o spans dentro de [button] personalizado)
   ----------------------------------------------------------------------------- */
.emc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--emc-radius-full);
  border: 2px solid var(--emc-primary);
  background: #fff;
  color: var(--emc-primary) !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.emc-btn-primary:hover {
  border-color: transparent;
  color: #fff !important;
  background: linear-gradient(90deg, var(--emc-accent), var(--emc-primary));
}

.emc-btn-primary .emc-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--emc-accent), var(--emc-primary));
  transition: all 0.3s ease;
}

.emc-btn-primary:hover .emc-btn-icon {
  background: #fff;
}

.emc-btn-primary .emc-btn-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: #fff;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.emc-btn-primary:hover .emc-btn-icon svg {
  stroke: var(--emc-primary);
  transform: translateX(4px);
}

.emc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--emc-radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.emc-btn-secondary:hover {
  background: #fff;
  border-color: transparent;
  color: var(--emc-primary) !important;
}

.emc-btn-secondary .emc-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.emc-btn-secondary:hover .emc-btn-icon {
  background: var(--emc-primary);
}

.emc-btn-secondary .emc-btn-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: #fff;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.emc-btn-secondary:hover .emc-btn-icon svg {
  stroke: #fff;
  transform: translateX(4px);
}

/* -----------------------------------------------------------------------------
   Sección servicios (fondo oscuro + lista)
   ----------------------------------------------------------------------------- */
.emc-section-dark {
  background: var(--emc-dark-bg);
  color: #fff;
}

.emc-heading-orange {
  color: var(--emc-primary);
  font-weight: 700;
  line-height: 1.2;
}

.emc-services-panel {
  border-radius: var(--emc-radius-lg);
  overflow: hidden;
  background: var(--emc-dark-card);
}

.emc-service-row {
  border-bottom: 1px solid var(--emc-white-10);
  transition: background 0.5s ease;
}

.emc-service-row:last-child {
  border-bottom: 0;
}

.emc-service-row:hover {
  background: linear-gradient(135deg, var(--emc-accent) 0%, var(--emc-primary) 100%);
}

.emc-service-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .emc-service-row-inner {
    padding: 1.5rem 2rem;
  }
}

.emc-service-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

@media (min-width: 768px) {
  .emc-service-title {
    font-size: 1.5rem;
  }
}

.emc-service-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--emc-white-90);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.emc-service-row:hover .emc-service-desc {
  max-height: 5rem;
  opacity: 1;
}

.emc-service-arrow {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.emc-service-row:hover .emc-service-arrow {
  background: rgba(255, 255, 255, 0.2);
}

.emc-service-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #fff;
  transition: transform 0.3s ease;
}

.emc-service-row:hover .emc-service-arrow svg {
  transform: translateX(4px);
}

/* -----------------------------------------------------------------------------
   Tarjetas Soluciones (vídeo + overlay)
   ----------------------------------------------------------------------------- */
.emc-solution-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--emc-radius-lg);
}

@media (min-width: 768px) {
  .emc-solution-card {
    height: 500px;
  }
}

.emc-solution-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emc-solution-overlay-bizdev {
  position: absolute;
  inset: 0;
  background: rgba(61, 61, 45, 0.7);
  z-index: 1;
}

.emc-solution-overlay-legal {
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 58, 0.7);
  z-index: 1;
}

.emc-solution-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.emc-solution-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--emc-primary);
  margin: 0 0 0.75rem;
}

.emc-solution-rule {
  width: 4rem;
  height: 2px;
  background: var(--emc-primary);
  margin-bottom: 1rem;
}

.emc-solution-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--emc-white-90);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Bloque Eloy
   ----------------------------------------------------------------------------- */
.emc-eloy-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--emc-dark-bg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .emc-eloy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.emc-eloy-photo {
  position: relative;
  min-height: 400px;
}

@media (min-width: 768px) {
  .emc-eloy-photo {
    min-height: 600px;
  }
}

.emc-eloy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.emc-eloy-copy {
  position: relative;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .emc-eloy-copy {
    padding: 4rem 4rem;
  }
}

.emc-eloy-watermark {
  pointer-events: none;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
}

.emc-eloy-name {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.emc-eloy-role {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  color: var(--emc-primary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   Formulario contacto (inputs subrayados)
   ----------------------------------------------------------------------------- */
.emc-form-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  background: #fff;
}

.emc-form-title {
  text-align: center;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  font-style: italic;
  color: var(--emc-fg);
  margin-bottom: 1rem;
}

.emc-form-title--accent {
  color: var(--emc-primary);
}

.emc-form-intro {
  text-align: center;
  font-size: 0.875rem;
  color: var(--emc-fg-soft);
  margin-bottom: 2.5rem;
}

.emc-form-grid2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .emc-form-grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.emc-form-wrap input[type="text"],
.emc-form-wrap input[type="email"],
.emc-form-wrap input[type="tel"],
.emc-form-wrap textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  background: transparent;
  padding: 0.75rem 0.25rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.emc-form-wrap input::placeholder,
.emc-form-wrap textarea::placeholder {
  color: rgba(26, 26, 26, 0.4);
}

.emc-form-wrap input:focus,
.emc-form-wrap textarea:focus {
  border-bottom-color: var(--emc-primary);
}

.emc-form-wrap textarea {
  resize: vertical;
  min-height: 5rem;
}

.emc-form-privacy {
  font-size: 0.75rem;
  color: var(--emc-fg-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.emc-form-privacy input[type="checkbox"] {
  accent-color: var(--emc-primary);
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.emc-footer {
  background: var(--emc-dark-bg);
  color: #fff;
}

.emc-footer a {
  color: var(--emc-white-60);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.emc-footer a:hover {
  color: var(--emc-primary);
}

.emc-footer-bar {
  border-top: 1px solid var(--emc-white-10);
  padding: 1.25rem 1.5rem;
}

.emc-footer-bar,
.emc-footer-main {
  max-width: var(--emc-container);
  margin-left: auto;
  margin-right: auto;
}

.emc-footer-legal a {
  font-size: 0.75rem;
  color: var(--emc-white-40);
}

.emc-footer-legal a:hover {
  color: var(--emc-white-60);
}

/* -----------------------------------------------------------------------------
   Páginas legales / Kit Digital
   ----------------------------------------------------------------------------- */
.emc-legal-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  background: #fff;
}

.emc-legal-wrap h1 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.emc-legal-wrap h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.emc-legal-wrap p,
.emc-legal-wrap li {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--emc-fg-muted);
}

.emc-legal-wrap ul {
  padding-left: 1.25rem;
}

.emc-kit-logos {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 3rem;
}

/* Tarjetas servicios (página Servicios) */
.emc-service-card {
  border-radius: var(--emc-radius-lg);
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: #fff;
  padding: 2rem;
  transition: box-shadow 0.3s ease;
  height: 100%;
}

.emc-service-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.emc-service-card-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--emc-primary);
  font-weight: 700;
}

.emc-service-card-rule {
  width: 3rem;
  height: 2px;
  background: var(--emc-primary);
  margin-bottom: 1rem;
}

.emc-service-card-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--emc-fg-muted);
  margin: 0;
}

/* Utilidades */
.emc-text-center {
  text-align: center;
}
.emc-mb-2 {
  margin-bottom: 2rem;
}
.emc-mb-8 {
  margin-bottom: 2rem;
}
.emc-italic-orange {
  font-style: italic;
  color: var(--emc-primary);
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}
