@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: max-content; /* Se ajusta exactamente al contenido */
  max-width: 95%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--pill-radius);
  padding: 12px 40px;
  display: flex;
  justify-content: center;
  gap: 40px; /* Separación entre el logo, el menú y el botón ES */
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.logo-container img {
  height: 80px;
  max-width: 400px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  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;
  display: flex;
  flex-direction: column;
}

.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;
  flex-grow: 1;
}

.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);
}

/* Custom Schedule Button */
.btn-schedule {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-blue);
  padding: 15px 30px;
  border-radius: var(--pill-radius);
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 25px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
  text-align: center;
}

.btn-schedule:hover {
  background: var(--gold-light);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
}

/* 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);
}

/* Hamburger & Nav Group Base */
.hamburger {
  display: none;
  cursor: pointer;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 992px) {
  header {
    position: fixed; /* Keeps it on screen */
    width: 95%;
    padding: 15px 25px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
  }
  
  /* Scroll behavior on mobile */
  header.header-scrolled:not(.nav-open) {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }
  
  header.header-scrolled:not(.nav-open) .logo-container {
    opacity: 0;
    pointer-events: none;
  }

  header.header-scrolled .hamburger {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85); /* Subtle background to keep it visible */
    border-radius: 50%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .hamburger {
    display: block;
  }
  .nav-group {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
    gap: 20px;
  }
  header.nav-open .nav-group {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
    font-size: 1.05rem;
  }
  .logo-container img {
    height: 45px;
  }
  .lang-toggle {
    padding: 6px 15px;
    width: 100%;
    max-width: 200px;
  }
  .hero-content {
    flex-direction: column;
    margin-top: 15vh;
  }
  .hero-content, .about-banner, .dynamic-section {
    text-align: center;
    flex-direction: column;
  }
  .about-text, .dynamic-text {
    order: -1;
  }
  .about-text h2, .dynamic-text h2 {
    text-align: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .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;
  }
  .hero {
    padding-bottom: 60px;
  }
  .features-list {
    flex-wrap: wrap;
  }
  .features-list li {
    justify-content: center;
    margin-bottom: 15px;
    min-width: 45%;
  }
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .moving-img-wrapper {
    order: -1;
  }
  .feature-text-block h3 {
    font-size: 2rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-logo img {
    height: 60px;
  }
  .social-icons {
    justify-content: center;
  }
}

/* Chatbot */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: var(--pill-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
}
.chatbot-trigger:hover {
    transform: scale(1.05);
    background: var(--gold-light);
}
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chatbot-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}
.chatbot-name {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}
.chatbot-status {
    font-size: 0.8rem;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}
.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}
.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
.chatbot-body {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}
.chat-msg {
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    width: max-content;
    max-width: 85%;
}
.bot-msg {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-bottom-left-radius: 5px;
    align-self: flex-start;
}
.user-msg {
    background: var(--primary-blue);
    color: var(--white);
    border-bottom-right-radius: 5px;
    align-self: flex-end;
}
.chat-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background: var(--white);
}
.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}
.chat-input-area input:focus {
    border-color: var(--gold);
}
.chat-input-area button {
    background: var(--gold);
    color: var(--primary-blue);
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
.chat-input-area button:hover {
    background: var(--gold-light);
}
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: var(--white);
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    width: max-content;
    align-self: flex-start;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
