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

:root {
  --bg-dark: #07101d;
  --bg-darker: #040911;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-gold: #c6a87c;
  --accent-gold-hover: #dfbc8b;
  --accent-lime: #b5d322;
  --accent-lime-hover: #cce843;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body, button, input, textarea, select {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

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

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

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(4, 9, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 104px;
  width: auto;
  transition: var(--transition);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-lime);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-darker);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-darker);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 17, 0.6); /* Oscurece el video para que el texto sea legible */
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero h1.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  white-space: nowrap;
  margin-bottom: 0;
  color: var(--text-main);
  background: none;
  -webkit-text-fill-color: initial;
}

.hl-verde {
  color: #b5d322; /* Lime Green / Verde limón amarillento */
  font-weight: 500;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
}

/* Sections */
section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-lime);
  margin-bottom: 1rem;
}

/* Two Column Layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Practice Areas Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 4px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.area-card::after {
  content: '+';
  position: absolute;
  top: 2.2rem;
  right: 2.5rem;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent-lime);
  transition: transform 0.3s ease;
  line-height: 1;
}

.area-card.active::after {
  content: '−';
  transform: rotate(180deg);
}

.area-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 168, 124, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.area-card h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0;
  padding-right: 2rem;
  transition: var(--transition);
}

.area-card:hover h3 {
  color: var(--accent-lime);
}

.area-card.active h3 {
  margin-bottom: 1rem;
}

.area-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
  flex-grow: 1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.area-card.active p {
  max-height: 500px;
  opacity: 1;
}

.area-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

/* Business Animated Figure */
.animated-figure-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  perspective: 1000px;
  width: 100%;
}

.business-figure {
  position: relative;
  width: 250px;
  height: 250px;
  transform-style: preserve-3d;
}

.shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid;
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  background: rgba(4, 9, 17, 0.4);
  backdrop-filter: blur(4px);
}

.shape-1 {
  transform: rotateX(45deg) rotateY(45deg);
  border-color: var(--accent-lime);
  box-shadow: 0 0 30px rgba(181, 211, 34, 0.2);
}

.shape-2 {
  transform: rotateX(45deg) rotateY(45deg) rotateZ(60deg);
  border-color: var(--accent-gold);
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}

.shape-3 {
  transform: rotateX(90deg) rotateY(45deg);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: transparent;
}

@keyframes rotateFigure {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

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

.benefit-item {
  padding: 2rem;
  border-left: 1px solid var(--border-color);
  transition: var(--transition);
}

.benefit-item:hover {
  border-left-color: var(--accent-lime);
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--accent-gold);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 17, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-lime);
}

/* FAQ Section */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent-gold);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-lime);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-lime);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--bg-darker);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 1.5rem;
  }

  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .grid-2, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .logo img {
    height: 60px;
  }

  .hero h1.hero-title {
    font-size: 2.2rem;
    white-space: normal;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Botón WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  color: #fff;
}
