/* amuletodeluz.com Unified Premium CSS Stylesheet */

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

:root {
  /* Color System */
  --bg-deep: #120924;
  --bg-darker: #0d061b;
  --bg-card: #1c1138;
  --bg-card-hover: #261a49;
  --bg-header: rgba(13, 6, 27, 0.75);
  --gold-primary: #c5a059;
  --gold-accent: #e2c077;
  --gold-glow: rgba(197, 160, 89, 0.3);
  --text-white: #ffffff;
  --text-silver: #f3f3f3;
  --text-muted: #b5adc4;
  
  /* Typography */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}

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

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* Premium Header (Glassmorphic & Sticky) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

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

header.scrolled .logo-img {
  max-height: 50px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-silver);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-accent);
}

/* Dropdown Menu (Servicios) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-darker);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 0;
  min-width: 260px;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 10;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.dropdown-item a:hover {
  color: var(--gold-accent);
  background-color: rgba(197, 160, 89, 0.05);
  padding-left: 28px;
}

/* Social Network Links in Header */
.header-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-silver);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--gold-primary);
  border-color: var(--gold-accent);
  color: var(--bg-deep);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Navigation Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hero & Intro Styles */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background-color: var(--bg-darker);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/amuleto-2.webp');
  background-position: center;
  background-size: cover;
  opacity: 0.45;
  mix-blend-mode: lighten;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, var(--bg-deep) 90%),
              linear-gradient(to bottom, transparent, var(--bg-deep) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-large {
  max-width: 480px;
  width: 90%;
  height: auto;
  animation: floatEffect 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

@keyframes floatEffect {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Intro Section */
.intro-text-box {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(28, 17, 56, 0.45);
  border: 1px solid rgba(197, 160, 89, 0.15);
  padding: 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 24px;
  color: var(--text-white);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold-primary), var(--gold-accent));
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.intro-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold-accent);
  margin-bottom: 16px;
}

.intro-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  text-wrap: balance;
}

.intro-action {
  font-weight: 600;
  color: var(--text-silver);
}

/* Animated Headline: Circle Accent */
.headline-container {
  margin-top: 48px;
  text-align: center;
}

.animated-headline {
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: 500;
  display: inline-block;
  padding: 0 10px;
}

.headline-highlight {
  position: relative;
  display: inline-block;
  color: var(--gold-accent);
  font-weight: 700;
  z-index: 1;
}

.headline-highlight::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  border: 2px solid var(--gold-primary);
  border-radius: 50% 45% 48% 46% / 48% 44% 49% 46%; /* Handwritten circle look */
  z-index: -1;
  animation: drawCircle 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px var(--gold-glow);
}

@keyframes drawCircle {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Services Cards Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(197, 160, 89, 0.3);
  background-color: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 65%; /* Aspect Ratio 16:10 approximate */
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .card-img {
  transform: scale(1.08);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

.service-card:hover .card-title a {
  color: var(--gold-accent);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 600;
  gap: 6px;
}

.card-btn::after {
  content: '→';
  transition: var(--transition-smooth);
}

.service-card:hover .card-btn {
  color: var(--gold-accent);
}

.service-card:hover .card-btn::after {
  transform: translateX(4px);
}

/* Service Detail Pages Layout */
.service-header {
  padding: 160px 0 80px 0;
  background-color: var(--bg-darker);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  position: relative;
}

.service-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0.2;
  mix-blend-mode: luminosity;
  z-index: 1;
}

.service-header .container {
  position: relative;
  z-index: 2;
}

.service-header-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-silver);
}

.breadcrumbs a:hover {
  color: var(--gold-accent);
}

.service-detail-layout {
  padding: 80px 0;
}

.service-body-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-silver);
}

.service-body-content p {
  margin-bottom: 24px;
}

.service-body-content ul {
  list-style: none;
  margin: 24px 0 32px 16px;
}

.service-body-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.service-body-content li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
}

.service-contact-box {
  margin-top: 60px;
  background-color: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
}

.service-contact-box h3 {
  margin-bottom: 16px;
  color: var(--gold-accent);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
  color: var(--bg-deep);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 36px;
  border-radius: 30px;
  margin-top: 16px;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-primary));
}

/* Testimonials Carousel Section */
.testimonials-section {
  background-color: var(--bg-darker);
  position: relative;
}

.testimonials-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-silver);
  line-height: 1.7;
  position: relative;
  margin-bottom: 30px;
  text-align: center;
}

.testimonial-quote::before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 5rem;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(197, 160, 89, 0.1);
  z-index: 0;
}

.testimonial-author {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-align: center;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.slider-btn {
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: var(--gold-primary);
  color: var(--bg-deep);
  border-color: var(--gold-accent);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--gold-accent);
  transform: scale(1.25);
}

/* Footer Section */
footer {
  background-color: var(--bg-deep);
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  padding: 80px 0 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  max-width: 220px;
  height: auto;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  list-style: none;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-silver);
}

.footer-contact-item a:hover {
  color: var(--gold-accent);
}

.footer-contact-icon {
  color: var(--gold-accent);
  display: flex;
  align-items: center;
}

.footer-contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.copyright {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  width: 100%;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.wa-badge {
  background-color: var(--bg-darker);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-silver);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-float:hover .wa-badge {
  opacity: 1;
  transform: translateX(0);
}

.wa-button {
  background-color: #2db742;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(45, 183, 66, 0.4);
  transition: var(--transition-smooth);
  position: relative;
}

.whatsapp-float:hover .wa-button {
  transform: scale(1.1) rotate(5deg);
  background-color: #34c74f;
  box-shadow: 0 6px 25px rgba(45, 183, 66, 0.6);
}

.wa-button::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #2db742;
  opacity: 0.5;
  animation: pulseWa 2s infinite;
  z-index: -1;
}

.wa-button svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulseWa {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Blog Index Page Layout */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.tip-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.tip-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.tip-card .card-img-wrapper {
  padding-bottom: 50%;
}

.tips-extra-text {
  text-align: center;
  margin-top: 60px;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-accent);
  padding: 30px;
  border-radius: var(--radius-md);
  background-color: rgba(28, 17, 56, 0.3);
  border: 1px solid rgba(197, 160, 89, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tips-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Mobile Header changes */
  header .container {
    height: 70px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--bg-darker);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    border-left: 1px solid rgba(197, 160, 89, 0.15);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
  }
  
  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 100%;
    display: none; /* Controlled by JS click on mobile */
  }
  
  .nav-item.open .dropdown-menu {
    display: block;
  }
  
  .dropdown-item a {
    padding: 8px 16px;
  }
  
  .header-socials {
    display: none; /* Hided in header, showed in drawer if needed or in footer */
  }
  
  /* Layout changes */
  .hero-logo-large {
    max-width: 320px;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slide {
    padding: 20px 10px;
  }
  
  .testimonial-quote {
    font-size: 1.05rem;
  }
  
  .footer-contacts {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .wa-badge {
    display: none; /* Hide badge on mobile */
  }
  
  .wa-button {
    width: 50px;
    height: 50px;
  }
  
  .wa-button svg {
    width: 26px;
    height: 26px;
  }
}
