/* ==========================================================================
   main.css - Estilos para la Landing Principal de legaldot.es
   ========================================================================== */

:root {
  /* Colors */
  --primary: #0c2340;       /* Navy Blue */
  --primary-light: #16365d;
  --accent: #d97706;        /* Subtle Orange */
  --accent-light: #f59e0b;
  --bg-color: #f8fafc;      /* Light Gray/Blue background */
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  padding: calc(var(--header-height) + 6rem) 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* =========================================
   HUB GRID (SERVICES)
   ========================================= */
.services-section {
  padding: 4rem 0 8rem;
  flex-grow: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card.featured {
  grid-column: 1 / -1; /* Ocupa todo el ancho disponible */
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem;
  background: linear-gradient(to right, #ffffff, #f8fafc);
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.service-card.featured .service-content {
  flex: 1;
}

.service-card.featured .service-icon {
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
  background: #e0f2fe; /* light blue hue */
}

.service-card.featured h2 {
  font-size: 2rem;
  color: var(--primary);
}

.service-card.featured p {
  font-size: 1.125rem;
}

.service-card.featured .btn-card {
  padding: 1rem 2rem;
  font-size: 1rem;
  background: var(--primary);
  color: white;
}

.service-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .service-card.featured {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
  }
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-color: #cbd5e1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-color);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.service-card:hover .btn-card {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Modificadores para tarjetas "Próximamente" */
.service-card.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.service-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.service-card.coming-soon:hover .service-icon {
  background: #f1f5f9;
  color: var(--primary);
}

.badge-soon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card.coming-soon .btn-card {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: transparent;
  cursor: not-allowed;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.card-1 { animation-delay: 0.1s; }
.card-2 { animation-delay: 0.2s; }
.card-3 { animation-delay: 0.3s; }
.card-4 { animation-delay: 0.4s; }

/* Ocultar elementos transparentes antes de animar */
.reveal {
  opacity: 0;
}
