/* 
   FinanExpert - Consultoría Financiera Profesional
   Custom CSS styles complementing Bulma framework
*/

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors - Blue-based financial theme */
  --primary-color: #2c5282;
  --primary-light: #4299e1;
  --primary-dark: #1a365d;
  
  /* Complementary Colors */
  --secondary-color: #e05a47;
  --secondary-light: #f56565;
  --secondary-dark: #c53030;
  
  /* Neutral Colors */
  --neutral-100: #f7fafc;
  --neutral-200: #edf2f7;
  --neutral-300: #e2e8f0;
  --neutral-400: #cbd5e0;
  --neutral-500: #a0aec0;
  --neutral-600: #718096;
  --neutral-700: #4a5568;
  --neutral-800: #2d3748;
  --neutral-900: #1a202c;
  
  /* Additional UI Colors */
  --success-color: #38a169;
  --warning-color: #ecc94b;
  --error-color: #e53e3e;
  --info-color: #4299e1;
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Shadows and Effects */
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --button-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-slow: 0.5s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-fast: 0.15s ease-in-out;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* ===== Global Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.title {
  font-family: var(--font-heading);
}

.subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.container {
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.button {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--button-shadow);
  transition: all var(--transition-normal);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.button.is-light.is-outlined {
  color: var(--neutral-100);
  border-color: var(--neutral-100);
}

.button.is-light.is-outlined:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.animated-button {
  position: relative;
  overflow: hidden;
}

.animated-button:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

.animated-button:hover:after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Image Container Styles */
.image-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Card Styles */
.card {
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

.navbar {
  background-color: transparent;
  transition: all var(--transition-normal);
}

.navbar.is-scrolled {
  background-color: var(--neutral-100);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-menu {
  font-family: var(--font-heading);
  font-weight: 600;
}

.navbar-item {
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-light);
  background-color: transparent;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
}

.parallax-section {
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--neutral-100);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== Mission Section ===== */
#mision {
  background-color: var(--neutral-100);
}

.mission-text {
  padding: 0 1rem;
}

.mission-text p {
  margin-bottom: 1.5rem;
}

/* ===== Services Section ===== */
.service-card {
  margin-bottom: 2rem;
}

.service-card .title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--neutral-700);
}

/* ===== Methodology Section ===== */
.methodology-container {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.accordion-container {
  margin-top: 1rem;
}

.accordion-item {
  border-bottom: 1px solid var(--neutral-300);
  margin-bottom: 1rem;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--primary-light);
}

.accordion-header h3 {
  margin-bottom: 0;
}

.accordion-content {
  padding: 0 0 1rem;
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .accordion-header .icon i {
  transform: rotate(45deg);
}

.accordion-header .icon i {
  transition: transform var(--transition-normal);
}

/* ===== Our Process Section ===== */
.process-card {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.process-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.process-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ===== Resources Section ===== */
.resource-card {
  height: 100%;
}

.resource-card h3 a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.resource-card h3 a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ===== Innovation Section ===== */
.innovation-card {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition-normal);
}

.innovation-card:hover {
  transform: translateY(-5px);
}

.innovation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.innovation-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

#innovacion .container {
  position: relative;
  z-index: 2;
}

/* ===== Behind the Scenes Section ===== */
#detras-escenas h3 {
  color: var(--primary-color);
}

/* ===== Customer Stories Section ===== */
.testimonial-card {
  height: 100%;
}

.testimonial-card .client-info {
  color: var(--neutral-600);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
  margin-bottom: 1rem;
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}

.testimonial-card .testimonial-text:before,
.testimonial-card .testimonial-text:after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary-light);
  position: absolute;
}

.testimonial-card .testimonial-text:before {
  left: 0;
  top: 0;
}

.testimonial-card .testimonial-text:after {
  right: 0;
  bottom: 0;
}

.testimonial-card .client-name {
  font-weight: 600;
  text-align: right;
}

/* ===== Contact Section ===== */
.contact-info {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  height: 100%;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-form-container {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.label {
  color: var(--neutral-800);
  font-weight: 600;
}

.input, .textarea, .select select {
  border-color: var(--neutral-300);
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: 4rem 1.5rem 2rem;
}

.footer-text {
  color: var(--neutral-400);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neutral-100);
}

.footer-social {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer-social li {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-social a {
  color: var(--neutral-400);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--primary-light);
}

.newsletter-signup .input {
  background-color: var(--neutral-700);
  border-color: var(--neutral-600);
  color: var(--neutral-100);
}

.newsletter-signup .input::placeholder {
  color: var(--neutral-500);
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-700);
  text-align: center;
  color: var(--neutral-500);
}

/* ===== Success Page ===== */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

/* ===== Privacy & Terms Pages ===== */
.legal-page {
  padding-top: 100px;
}

.legal-content {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.legal-content h3 {
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== Media Queries ===== */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .navbar-menu {
    background-color: var(--neutral-100);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  .innovation-card, .process-card, .contact-info, .contact-form-container {
    margin-bottom: 1.5rem;
  }
  
  .footer-social li {
    margin-right: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .title.is-1 {
    font-size: 2rem;
  }
  
  .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* ===== Animation Classes ===== */
.fade-in {
  animation: fadeIn var(--transition-normal);
}

.slide-up {
  animation: slideUp var(--transition-normal);
}

.slide-right {
  animation: slideRight var(--transition-normal);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Parallax scroll effect */
.parallax-effect {
  transform: translateY(0);
  transition: transform 0.5s ease-out;
  will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-200);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}