@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Brand palette — matches the official CONACO logo exactly (magenta flower + charcoal wordmark) */
  --primary: #bb358b;
  --primary-light: #d17fb3;
  --sec-dark: #4d4e4d;
  --accent: #c9a96a;
  --medium: #b98ca6;
  --light: #e8d0de;
  --very-light: #f8edf4;
  --cream: #fbf9f7;
  --white: #ffffff;
  --text-dark: #2e2e2e;
  --text-light: #6e6e6e;

  /* Type system: elegant serif for display/headings, clean sans for body */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4,
.hero-title,
.split-heading,
.stat-number,
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

img,
video {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.logo-img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.mobile-nav-footer {
  display: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--sec-dark);
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Trigger (animates into an X) */
.hamburger {
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  width: 26px;
  height: 18px;
}

.bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--sec-dark);
  transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 8px; }
.bar:nth-child(3) { top: 16px; }

.hamburger.open .bar {
  background-color: var(--primary);
}

.hamburger.open .bar:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .bar:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--very-light) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-flex {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 600;
  color: var(--sec-dark);
  margin-bottom: 22px;
  line-height: 1.15;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 480px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(187, 53, 139, 0.3);
  background-color: var(--sec-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  margin-left: 10px;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(187, 53, 139, 0.25);
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Section Common */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--sec-dark);
  margin-bottom: 15px;
}

.section-title p {
  font-family: var(--font-body);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--sec-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--very-light);
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: var(--very-light);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(77, 78, 77, 0.06);
  box-shadow: 0 5px 20px rgba(43, 34, 36, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: linear-gradient(165deg, #4d4e4d 0%, #2c2c2c 100%);
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    transition: left 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: none;
    padding: 30px 0;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links > li {
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.active > li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active > li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active > li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.active > li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active > li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.active > li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.active > li:nth-child(6) { transition-delay: 0.3s; }
  .nav-links.active > li:nth-child(7) { transition-delay: 0.35s; }
  .nav-links.active > li:nth-child(8) { transition-delay: 0.4s; }

  .nav-links > li > a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    padding: 13px 0;
    display: inline-block;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    color: var(--primary-light);
  }

  .nav-links > li:not(.nav-cta):not(.mobile-nav-footer) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 84%;
  }

  /* "Acceso Socias / Mi Perfil" reads as an action, not a nav link */
  .nav-cta {
    margin-top: 14px;
  }

  .nav-links > .nav-cta > a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sec-dark);
    background: #fff;
    padding: 12px 30px;
    border-radius: 50px;
  }

  .nav-links > .nav-cta > a:hover {
    color: var(--primary);
  }

  /* Decorative footer inside the mobile menu */
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
  }

  .mobile-nav-social {
    display: flex;
    gap: 14px;
  }

  .mobile-nav-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s ease;
  }

  .mobile-nav-social a:hover {
    background: var(--primary);
  }

  .mobile-nav-tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-links > li:last-child > a:hover {
    color: var(--primary);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    height: auto;
    padding-bottom: 50px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* Main.css additions for Home Page Replication */

/* Hero background blob effect */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle at center, var(--light) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.3;
    z-index: 0;
    border-radius: 50%;
}

/* Service Crads Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(187, 53, 139, 0.1);
    transform: translateY(-10px);
    border-color: var(--light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--very-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--sec-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats Section — editorial "magazine stat block" instead of a solid color band */
.stats-section {
    background-color: var(--cream);
    color: var(--sec-dark);
    padding: 70px 0;
    margin-top: 0;
    border-top: 1px solid rgba(77, 78, 77, 0.08);
    border-bottom: 1px solid rgba(77, 78, 77, 0.08);
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    flex: 1;
    max-width: 220px;
    padding: 0 30px;
    border-left: 1px solid rgba(77, 78, 77, 0.12);
}

.stat-item:first-child {
    border-left: none;
}

.stat-item i {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* About Section Split */
.about-split {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img-group {
    flex: 1;
    position: relative;
    padding: 20px;
}

.about-main-img {
    width: 90%;
    border-radius: 20px;
    z-index: 1;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Shared floating badge card (used in hero + about section) */
.floating-badge-card {
    position: absolute;
    background: var(--white);
    padding: 18px 26px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 250px;
}

.floating-badge-card h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.floating-badge-card small {
    color: var(--text-light);
}

.about-floating-card {
    bottom: 50px;
    right: 0;
}

.hero-floating-card {
    bottom: 100px;
    right: 50px;
    animation: float 4s ease-in-out infinite;
}

.floating-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.about-content {
    flex: 1;
}

.badge-pill {
    font-family: var(--font-body);
    color: var(--primary);
    padding: 0 0 0 18px;
    position: relative;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: inline-block;
    margin-bottom: 20px;
}

.badge-pill::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 1.5px;
    background-color: var(--accent);
}

/* Appointment Form Section */
.appointment-section {
    position: relative;
    background-color: #fafafa;
    overflow: hidden;
}

.form-wrapper-home {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.quote-icon {
    font-size: 40px;
    color: var(--light);
    position: absolute;
    top: 20px;
    right: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--medium);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(rgba(77, 78, 77, 0.92), rgba(187, 53, 139, 0.88)), url('../img/CTA_Conaco_Fondo.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section p {
    font-family: var(--font-body);
}

/* Large section heading used in split/asymmetric layouts (About, Appointment) */
.split-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--sec-dark);
    line-height: 1.25;
}

/* Stat row under hero subtitle (avatars + counter) */
.hero-stat-row {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stat-avatars {
    display: flex;
}

.hero-stat-avatars img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-right: -10px;
}

.hero-stat-row .stat-count {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-stat-row .stat-caption {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-light);
}

/* Checklist grid (About section benefits list) */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.checklist-grid li {
    display: flex;
    align-items: center;
}

.checklist-grid i {
    color: var(--primary);
    margin-right: 10px;
}

@media (max-width: 992px) {
    .about-split {
        flex-direction: column;
    }
    .appointment-content {
        grid-template-columns: 1fr;
    }
}


/* About Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(77, 78, 77, 0.85), rgba(187, 53, 139, 0.75)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: var(--white);
    font-weight: 500;
}

/* Accordion FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.accordion-header {
    background: var(--white);
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--sec-dark);
    transition: all 0.3s ease;
}

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

.accordion-header.active {
    background-color: var(--very-light);
    color: var(--primary);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.accordion-content {
    padding: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
    line-height: 1.6;
}

/* Payment Card */
.payment-card {
    background: linear-gradient(135deg, var(--sec-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.payment-card h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.payment-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.4);
}


/* Fix for Fixed Navbar Overlap */
.page-header {
    margin-top: 80px; /* Account for fixed navbar height */
}


/* Glassmorphism Navbar for smoother 'passing under' effect */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


/* Directiva Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    top: 100%;
    border-top: 3px solid var(--primary);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--very-light);
    color: var(--primary) !important;
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Specific Active State for Directiva Parent */
.dropdown > a.active {
    color: var(--primary);
    font-weight: 600;
}

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

/* Mobile Adjustments for Dropdown */
@media (max-width: 768px) {
    .dropdown {
        display: block;
        width: 100%;
    }
    
    .dropdown-content {
        position: relative;
        box-shadow: none;
        border-top: none;
        background-color: rgba(0,0,0,0.02);
        padding-left: 20px;
    }
}


/* Floating Action Buttons */
.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 24px;
    cursor: pointer;
    border: none;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-scroll-top {
    background-color: var(--sec-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================================================================
   MOBILE & RESPONSIVE REFINEMENTS
   ========================================================================== */

@media (max-width: 992px) {
    /* Stack split layouts vertically */
    .about-split {
        flex-direction: column;
    }

    /* Full width for images and content in split layouts */
    .about-img-group, .about-content {
        width: 100%;
        padding: 0;
    }

    .about-main-img {
        width: 100%;
    }

    /* Stack Appointment columns */
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .appointment-content > div:last-child {
        padding-left: 0 !important; /* Remove huge padding on mobile */
    }

    /* Center contact info in appointment section */
    .appointment-content .badge-pill, 
    .appointment-content h2, 
    .appointment-content p {
        text-align: center;
    }

    .appointment-content .d-flex-gap-30 {
         /* Helper class logic if used, otherwise specific rule: */
         flex-direction: column;
         gap: 20px;
         justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Header & Hero Adjustments */
    .hero {
        text-align: center;
        padding-top: 120px; /* More space for fixed header */
        padding-bottom: 60px;
        height: auto;
    }

    .hero-title {
        font-size: 2.2rem; /* Smaller font for mobile */
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-flex {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-image {
        max-width: 320px;
        margin: 30px auto 0;
        text-align: center;
    }

    .hero-image img {
        width: 100%;
    }

    /* Floating badge cards flow normally on mobile instead of overlapping */
    .floating-badge-card {
        position: static;
        margin: 15px auto 0;
        animation: none;
        max-width: 260px;
    }

    /* Large split-layout headings scale down on mobile */
    .split-heading,
    .cta-section h2,
    .section-title h2 {
        font-size: 1.9rem;
    }

    /* Checklist benefits list becomes a single column on mobile */
    .checklist-grid {
        grid-template-columns: 1fr;
    }

    /* Stack grid FAQ sections (Nosotros Page) */
    .section-padding > .container > div[style*='grid-template-columns'] {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Floating Buttons Size Adjustment */
    .floating-controls {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Adjust page headers */
    .page-header {
        padding: 60px 0;
        margin-top: 80px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Directiva becomes a tap-to-expand accordion inside the dark overlay
       (CSS :hover is unreliable on touch, so this is driven by a JS-toggled
       .open class instead) */
    .dropdown {
        width: 84%;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown > a {
        justify-content: center;
    }

    .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .dropdown.open .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown .dropdown-content {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding-bottom: 6px;
        animation: none;
    }

    .dropdown .dropdown-content a {
        color: rgba(255, 255, 255, 0.75) !important;
        font-family: var(--font-body);
        font-size: 0.95rem;
        padding: 10px 0;
        border-bottom: none !important;
    }

    .dropdown .dropdown-content a:hover {
        color: #fff !important;
    }
}

