/* CSS Variables for Ultra Minimalist Premium Theme */
:root {
  --bg-color: #FFFFFF;
  
  /* Corporate Colors */
  --color-plum: #240a1e; 
  --color-lilac: #9c89ce;
  
  /* Neutral colors */
  --text-main: #111111;
  --text-muted: #777777; /* Slightly darker for better contrast */
  --border-color: #E2E2E2; /* Slightly more visible but still subtle */
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Baseline for rems */
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.7; /* Increased for better readability */
  overflow-x: hidden;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-plum);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem; /* Increased padding for safety edges */
}

.section {
  padding: 8rem 0;
}

.text-center {
  text-align: center;
}

/* Perfecting Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3.5rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid var(--color-plum);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-plum);
  color: white;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-plum);
}

.btn-outline {
  background: transparent;
  color: var(--color-plum);
}

.btn-outline:hover {
  background-color: var(--color-plum);
  color: white;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo img {
  height: 55px; /* Increased size significantly */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 3.5rem; /* Increased gap */
}

.nav-links li a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links li a:hover {
  color: var(--color-plum);
  opacity: 1;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem; /* Account for larger header */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem; /* Increased gap */
}

.hero-content {
  flex: 1;
}

.hero-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-lilac);
  margin-bottom: 2rem;
  display: block;
  font-weight: 500;
}

.hero-title {
  font-size: 4.8rem;
  line-height: 1.05;
  margin-bottom: 2.5rem;
  letter-spacing: -1.5px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 450px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-image-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  width: 100%;
  max-width: 550px;
  display: block;
  object-fit: cover;
}

/* Sections Common */
.section-title {
  font-size: 3.5rem;
  margin-bottom: 5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--color-lilac); /* Using lilac for subtitles */
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Especialidades Section - PERFECT BOXES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.service-card {
  border: 1px solid var(--border-color);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.4s ease;
}

.service-card:hover {
  border-color: var(--color-plum);
}

.service-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  letter-spacing: -0.5px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-icon, .accent-icon {
  display: none; /* Hidden for minimalism */
}

/* Sobre Mi Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 8rem;
}

.about-image-wrap {
  flex: 1;
}

.about-image {
  width: 100%;
  max-width: 600px;
  display: block;
  object-fit: cover;
}

.about-content {
  flex: 1;
}

.about-content p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.1rem;
}

.highlight-text {
  color: var(--color-plum);
  font-weight: 400;
}

/* Contacto Section - PERFECT BOXES */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem; /* Matches services grid gap */
}

.contact-info, .contact-form {
  border: 1px solid var(--border-color);
  padding: 4.5rem 3.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.contact-item i {
  display: none;
}

.contact-form {
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  font-family: inherit;
  transition: border-color 0.4s;
  font-size: 1.05rem;
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--color-plum);
}

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

/* Footer (Light/Minimalist) */
footer {
  background: var(--bg-color); 
  color: var(--text-muted);
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-plum);
  opacity: 1;
}

.legal-links {
  display: flex;
  gap: 2.5rem;
}

.legal-links a {
  transition: color 0.3s ease;
  font-weight: 500;
}

.legal-links a:hover {
  color: var(--color-plum);
  opacity: 1;
}

/* Animaciones de Revelación (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container, .about-container, .contact-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-image-wrap {
    order: -1;
  }
  
  .hero-image-wrap {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .service-title {
    text-align: center;
  }
  
  .contact-info, .contact-form {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    gap: 0; /* Anular el gap gigante de desktop */
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    text-align: center;
    padding: 1rem 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .legal-links {
    justify-content: center;
  }
}
