@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #f4f1ea;
  --secondary-color: #0f4c81;
  --accent-color: #b1843a;
  --ink: #17202a;
  --text-light: #1d1d1f;
  --text-muted: #62666d;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --border-color: #ded8cc;
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 18px 45px rgba(23, 32, 42, 0.09);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: #fffdf9;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--secondary-color); }
.eyebrow {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Top Bar */
.top-bar {
  background-color: var(--ink);
  padding: 0.5rem 5%;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #f5f5f7;
}

.top-bar a {
  color: #f4f1ea;
  margin-left: 1rem;
}

.top-bar a:hover {
  color: var(--accent-color);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary-color);
  color: #ffffff;
  font-weight: 600;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #123f68;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--secondary-color);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-light {
  background: #ffffff;
  color: var(--secondary-color);
}

.btn-light:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  background: linear-gradient(105deg, rgba(14, 28, 42, 0.82), rgba(15, 76, 129, 0.58)), url('images/tingey-injury-law-firm-yCdPU73kGSc-unsplash.jpg') center/cover;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
  animation: fadeIn 1s ease-out forwards;
}

.hero-kicker {
  color: #f1d08c;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  color: #ffffff;
  font-size: 4.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  padding: 0.75rem 1rem;
}

.trust-row strong {
  color: #ffffff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General Section Styles */
section {
  padding: 6rem 5%;
}

.split-section {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.split-copy h2,
.cta-band h2 {
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.18;
}

.split-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.split-panel {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  padding: 2.5rem;
}

.split-panel h3 {
  color: #ffffff;
}

.check-list {
  list-style: none;
}

.check-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0 1rem 2rem;
  position: relative;
}

.check-list li::before {
  color: #f1d08c;
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  left: 0;
  position: absolute;
}

/* Features (Por qué elegirnos) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(23, 32, 42, 0.04);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.services-section {
  background: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(23, 32, 42, 0.08);
}

.service-card-featured {
  border: 2px solid var(--accent-color);
  grid-column: 1 / -1;
  height: 420px;
}

.service-card-featured::before {
  background: linear-gradient(135deg, rgba(177, 132, 58, 0.38), rgba(15, 76, 129, 0.12));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.service-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
  opacity: 1;
}

.service-card:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.service-content {
  padding: 2rem;
  background: linear-gradient(to top, rgba(12,22,32,0.96) 0%, rgba(12,22,32,0.78) 64%, transparent 100%);
  width: 100%;
  position: relative;
  transition: var(--transition);
  z-index: 2;
}

.service-content h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  transition: var(--transition);
}

.service-label {
  color: #f1d08c;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.service-card-featured .service-content {
  max-width: 760px;
}

.service-card-featured .service-content h3 {
  font-size: 2rem;
}

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

.cta-band {
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-color), var(--ink));
  color: #ffffff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.cta-band h2,
.cta-band .eyebrow {
  color: #ffffff;
  margin-bottom: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info h3 {
  color: var(--ink);
  font-size: 2rem;
}

.contact-info > p {
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: #f5f5f7;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot field - hidden from real users */
.hp-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Footer */
footer {
  background-color: var(--ink);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #f1d08c;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

footer,
footer a,
footer .logo {
  color: #ffffff;
}

.faq-section {
  background: #fffdf9;
  padding-top: 2rem;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-grid article {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}

.faq-grid h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .top-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .top-bar a {
    display: inline-block;
    margin: 0.25rem 0.8rem 0 0;
  }

  header .btn {
    display: none;
  }

  .hero {
    min-height: 78vh;
    padding: 4rem 5%;
  }

  .hero h1 { font-size: 2.55rem; }
  .nav-links { display: none; } /* Mobile menu simplified for now */
  .contact-container,
  .split-section,
  .faq-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-featured {
    height: 380px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-copy h2,
  .cta-band h2 {
    font-size: 2rem;
  }

  .contact-form,
  .split-panel {
    padding: 2rem;
  }
}
