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

:root {
  --primary: #7f1717;
  /* Bordó original */
  --secondary: #4a4a4a;
  /* Gris Grafito Elegante */
  --secondary-hover: #333333;
  --primary-hover: #991b1b;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
  display: flex;
  align-items: center;
}

.bg-hero-inicio {
  background-image: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.8)), url('images/portada.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--primary);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 23, 23, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
}

.btn-light:hover {
  background-color: var(--bg-light);
  color: var(--primary-hover) !important;
  border-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

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

/* Main Content Sections */
.section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* Service Cards */
.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
}

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

/* Split Section (Image + Text) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.split-content h2 {
  font-size: 2.5rem;
}

/* Partners Section */
.partner-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.partner-img {
  height: 300px;
  background-color: var(--bg-light);
  background-size: cover;
  background-position: center top;
}

.partner-info {
  padding: 2rem;
}

.partner-info h3 {
  margin-bottom: 0.5rem;
}

.partner-role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(127, 23, 23, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

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

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 23, 23, 0.1);
}

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

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

footer i.fa-solid {
  color: #d4af37 !important;
  /* Dorado elegante para resaltar */
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

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

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

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

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

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

/* Utilities for JS animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Header Mini Hero */
.page-header {
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.bg-header-el-estudio {
  background-image: linear-gradient(rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.9)), url('images/el-estudio-header.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg-header-socios {
  background-image: linear-gradient(rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.9)), url('images/socios-header.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg-header-contacto {
  background-image: linear-gradient(rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.9)), url('images/contacto-header.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-right: 0;
  }
}