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

:root {
  --primary-blue: #0A192F; 
  --secondary-blue: #112240;
  --gold: #C5A059;
  --gold-light: #E8D09E;
  --accent: #F4F7FA;
  --text-dark: #333333;
  --text-light: #F8F9FA;
  --white: #FFFFFF;
  --pill-radius: 50px;
  --organic-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  --organic-radius-2: 60% 40% 30% 70% / 50% 60% 40% 50%;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
}

body {
  background-color: var(--accent);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 800;
  color: var(--primary-blue);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px; /* Mas angosto */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--pill-radius);
  padding: 15px 30px; /* Mas gordo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.logo-container img {
  height: 55px; /* Un poquito mas grande */
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  color: var(--primary-blue);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--gold);
}

.lang-toggle {
  background: var(--gold);
  color: var(--primary-blue);
  border: none;
  padding: 6px 18px;
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition);
}

.lang-toggle:hover {
  transform: scale(1.05);
  background: var(--gold-light);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-color: var(--primary-blue);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(197, 160, 89, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05), transparent 25%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 5% 120px; /* Bajar un poco */
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row; /* Image right, text left */
  align-items: center;
  justify-content: center; /* Centered */
  max-width: 1200px;
  width: 100%;
  gap: 20px; /* Mas pegados */
  margin-top: 3vh; /* Bajar un poco */
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  color: var(--white);
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 500px;
  margin-left: 0;
}

.hero-image-container {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image {
  max-width: 350px;
  width: 100%;
  height: auto;
  z-index: 2;
  margin-right: auto;
}

/* Services Shortcuts - Overlapping the Hero */
.services-shortcuts {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 5%;
  margin-top: -100px; /* Overlap effect */
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  text-align: center;
  flex: 1;
  max-width: 350px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--gold);
  border-radius: var(--organic-radius-2);
  box-shadow: 0 25px 45px rgba(197, 160, 89, 0.2);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.service-card p {
  color: #666;
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-blue);
  padding: 14px 32px;
  border-radius: var(--pill-radius);
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

/* About Banner */
.about-banner {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: transparent;
  box-shadow: none;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-text {
  flex: 1.2;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 25px;
}

.about-text p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
}

/* Dynamic Section */
.dynamic-section {
  padding: 100px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.dynamic-text {
  flex: 1.2;
}

.dynamic-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.dynamic-text p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.8;
}

.features-list {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  justify-content: flex-start;
  gap: 20px; /* Uno al lado del otro */
}

.features-list li {
  display: flex;
  flex-direction: column; /* Texto debajo del icono */
  align-items: center;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  flex: 1;
}

.features-list span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.3;
}

.feature-icon {
  width: 90px;
  height: 90px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid var(--gold);
}

.feature-icon .lucide {
  width: 45px;
  height: 45px;
  stroke: var(--gold);
  stroke-width: 2px;
}

.dynamic-image-container {
  flex: 1;
  position: relative;
}

.slanted-shape {
  transform: skewX(-10deg);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  display: inline-block;
  background: var(--gold);
}
.slanted-shape img {
  transform: skewX(10deg) scale(1.15);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer */
footer {
  background: var(--primary-blue);
  color: var(--text-light);
  padding: 80px 5% 30px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 80px; /* Hacer el logo un poco más visible */
  object-fit: contain;
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 8px;
  opacity: 0.8;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--primary-blue);
  transform: translateY(-5px);
}

.social-icons .lucide {
  stroke: var(--white);
  width: 32px; /* Un poco mas grandes */
  height: 32px;
  stroke-width: 2px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  opacity: 0.6;
  font-size: 1rem;
}

/* Utilities */
.text-gold {
  color: var(--gold);
}

/* Animations for Tax Planning Images */
@keyframes floatAnimation {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.moving-img {
  width: 100%;
  display: block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-radius: 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.moving-img:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.2);
}

.moving-img-wrapper {
  flex: 1;
  padding: 20px;
}

/* Alternating Feature Rows */
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 5%;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text-block {
  flex: 1.2;
}

.feature-text-block h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.feature-text-block p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.8;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--primary-blue);
  color: var(--white);
  padding: 80px 5%;
  border-radius: 40px;
  max-width: 1000px;
  margin: 60px auto;
  box-shadow: 0 15px 40px rgba(10, 25, 47, 0.2);
}

.cta-section h2 {
  color: var(--gold);
  font-size: 2.8rem;
  margin-bottom: 30px;
}

/* Slanted Text Box for Services */
.slanted-text-box {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transform: skewX(-4deg);
  border: 2px solid transparent;
  transition: var(--transition);
}

.slanted-text-box:hover {
  border-color: var(--gold);
  transform: skewX(-4deg) translateY(-10px);
}

.slanted-content {
  transform: skewX(4deg);
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  .hero-content, .about-banner, .dynamic-section {
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero p {
    margin: 0 auto 15px auto;
  }
  .hero-image-container {
    justify-content: center;
  }
  .services-shortcuts {
    flex-direction: column;
    align-items: center;
    margin-top: 40px; /* Remove overlap on mobile to save space */
  }
  .hero {
    padding-bottom: 60px;
  }
  .features-list li {
    justify-content: center;
  }
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .feature-text-block h3 {
    font-size: 2rem;
  }
}
