/* ========================================
   DISEÑO MINIMALISTA ESTUDIO JURÍDICO
   Paleta: Neutros + Acentos Dorados
   ======================================== */

/* Variables de Color */
:root {
  --primary-dark: #1a1a1a;
  --primary-light: #f5f5f5;
  --accent-gold: #c9a869;
  --accent-gold-light: #e0c89d;
  --text-dark: #2c2c2c;
  --text-gray: #666666;
  --text-light: #999999;
  --border-light: #e5e5e5;
  --white: #ffffff;
  --shadow-subtle: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary-dark);
}

/* Optimización global de imágenes */
img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  max-width: 100%;
  height: auto;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--primary-dark);
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10rem 2rem 6rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  border-radius: 30px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent-gold);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background-color: var(--border-light);
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  line-height: 1.1;
}

.title-line {
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 2rem 0;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  line-height: 1.8;
}

.section-text {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header .title-line {
  margin: 2rem auto;
}

/* ========================================
   SOBRE NOSOTROS
   ======================================== */

.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-content {
  padding-right: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.feature-box:hover .feature-icon {
  background-color: var(--accent-gold);
}

.feature-box:hover .feature-icon i {
  color: var(--white);
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-gold);
  z-index: -1;
}

.image-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
  background-color: var(--primary-light);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-gold);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 2rem 2rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* ========================================
   SERVICIOS
   ======================================== */

.services-section {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow-subtle);
}

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--accent-gold);
}

.service-icon-wrapper i {
  font-size: 2rem;
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper i {
  color: var(--white);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.8rem 0;
  color: var(--text-gray);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--primary-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* ========================================
   CONTACTO
   ======================================== */

.contact-section {
  background-color: var(--primary-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 1rem;
}

.advantages-list {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.advantage-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.advantage-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-gold);
  min-width: 50px;
}

.advantage-content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.advantage-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.contact-details {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--white);
  border-left: 2px solid var(--accent-gold);
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.contact-details i {
  color: var(--accent-gold);
  width: 20px;
}

.contact-form-wrapper {
  background-color: var(--white);
  padding: 3rem;
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-light);
  background-color: var(--white);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  background-color: var(--white);
  padding: 0 0.5rem;
  color: var(--accent-gold);
}

.form-group select {
  cursor: pointer;
}

.contact-form button {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--primary-dark);
  color: var(--white);
  border: 1px solid var(--primary-dark);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.contact-form button:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ========================================
   UBICACIÓN
   ======================================== */

.location-section {
  background-color: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.location-description {
  margin: 2rem 0 3rem;
  color: var(--text-gray);
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  min-width: 30px;
}

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary-dark);
}

.info-item p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.map-wrapper {
  height: 500px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-light);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-contact i {
  color: var(--accent-gold);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
  .section-container {
    padding: 6rem 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-light);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-grid,
  .contact-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1.5rem 1.5rem;
  }
  
  .section-container {
    padding: 3rem 1.5rem;
  }
  
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem;
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .stat-divider {
    width: 50px;
    height: 1px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-content {
    text-align: center;
  }
  
  .section-header {
    text-align: center;
  }
  
  .title-line {
    margin: 1.5rem auto;
  }
  
  .image-wrapper::before {
    display: none;
  }
  
  .image-wrapper img {
    height: 400px;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .service-number {
    font-size: 3rem;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .section-description {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-tag {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .service-number {
    font-size: 2.5rem;
  }
  
  .service-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .nav-container {
    padding: 1.2rem 1rem;
  }
  
  .section-container {
    padding: 2.5rem 1rem;
  }
  
  .hero {
    padding: 6rem 1rem 2.5rem;
  }
  
  .image-wrapper img {
    height: 300px;
  }
  
  .feature-box {
    padding: 1.5rem;
  }
  
  .about-features {
    gap: 1rem;
  }
  
  .section-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .title-line {
    margin: 1rem auto;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsivo para WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}
