
:root {
  --primary-color: #0b5aa2;
  --secondary-color: #1aa3ff;
  --accent-color: #00e676;
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

html {
  font-size: 100%;
  /* 16px */
  scroll-behavior: smooth;
}

h1 {
  font-size: 4.210rem;
}

h2 {
  font-size: 3.158rem;
}

h3 {
  font-size: 2.369rem;
}

h4 {
  font-size: 1.777rem;
}

h5 {
  font-size: 1.333rem;
}

small {
  font-size: 0.750rem;
}

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

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.full-width-nav {
  padding: 0 3rem;
  width: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  margin-left: 1.5rem;
  white-space: nowrap;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0b7ae6);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #0b7ae6, var(--primary-color));
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Desktop/Mobile specific */
.mobile-only {
  display: none;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 400;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

/* Hero Carousel Section */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  margin-top: 80px;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-image {
  width: 100%;
  height: 100%;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(5, 59, 109, 0.6), rgba(11, 90, 162, 0.4));
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
  z-index: 3;
}

.carousel-content h2 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
}

.carousel-slide.active .carousel-content h2 {
  animation: slideUp 0.8s ease forwards 0.3s;
}

.carousel-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
}

.carousel-slide.active .carousel-content p {
  animation: slideUp 0.8s ease forwards 0.5s;
}

.carousel-content .btn {
  opacity: 0;
}

.carousel-slide.active .carousel-content .btn {
  animation: fadeIn 0.8s ease forwards 0.8s;
}

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

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

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-control:hover {
  background: rgba(255,255,255,0.5);
  color: var(--primary-color);
}

.carousel-control.prev {
  left: 2rem;
}

.carousel-control.next {
  right: 2rem;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: white;
  transform: scale(1.2);
}


/* Common Section Styles */
section {
  padding: 6rem 0;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: #053b6d;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Quienes Somos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Especialidades */
.specialties-section {
  background-color: white;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
}

/* Ensure placeholder truncates cleanly if too long on very small screens */
.search-input::placeholder {
  text-overflow: ellipsis;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(11, 90, 162, 0.1);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.specialty-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.specialty-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.professionals-list {
  margin-top: 1rem;
}

.professional-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
}

.professional-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.professional-info h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.professional-info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Planes */
.plans-section {
  background-color: var(--bg-color);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.plan-featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.plan-card.plan-featured::before {
  content: 'Recomendado';
  position: absolute;
  top: 1.5rem;
  right: -2rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 3rem;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
}

.plan-name {
  font-family: 'Inter';
  font-size: 2rem;
  color: #053b6d;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.plan-price sub {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.plan-features {
  margin-bottom: 2rem;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.plan-action {
  margin-top: auto;
}

/* Turnos Section CTA */
.turnos-cta {
  background: linear-gradient(135deg, var(--primary-color), #053b6d);
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 1000px;
  box-shadow: var(--shadow-lg);
}

.turnos-cta h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.turnos-cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Contacto */
.contact-section {
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  padding: 2rem;
  background: var(--bg-color);
  border-radius: 12px;
}

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

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 90, 162, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background: #053b6d;
  color: white;
  padding: 2rem 0 1rem;
  text-align: center;
}

.footer-content {
  margin-bottom: 1rem;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  color: white;
}

/* Header Hidden */
.header-hidden {
  transform: translateY(-100%);
}

/* Profesionales / Sumate */
.join-section {
  background-color: var(--card-bg);
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.join-features {
  margin-top: 2rem;
}

.join-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.join-features i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding-bottom: 1.5rem;
  transition: var(--transition);
}

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

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-card h4 {
  margin: 1rem 0 0.25rem;
  color: var(--primary-color);
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Community Carousel */
.community-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background: white;
}

.community-carousel {
  width: 100%;
  overflow: hidden;
}

.community-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.community-item {
  min-width: 100%;
  height: 400px;
}

.community-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .community-item {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .community-item {
    min-width: 33.333%;
  }
}

.community-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.community-control:hover {
  background: white;
  box-shadow: var(--shadow-md);
}

.community-control.prev {
  left: 1rem;
}

.community-control.next {
  right: 1rem;
}

/* Loading Spinner */
.loader {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  color: #dc2626;
  text-align: center;
  padding: 1rem;
  background: #fee2e2;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    transition: 0.4s;
    gap: 1.5rem;
  }

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

  .nav-links li {
    margin: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .full-width-nav {
    padding: 0 1.5rem;
  }

  .hero-carousel {
    height: 70vh;
    margin-top: 70px;
  }

  .carousel-content h2 {
    font-size: 2.2rem;
  }

  .carousel-content p {
    font-size: 1.1rem;
  }

  .carousel-control {
    display: none;
  }

  .about-grid,
  .contact-container,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.plan-featured {
    transform: none;
  }

  footer {
    padding: 4rem 0 2rem;
  }

  .footer-content {
    margin-bottom: 2rem;
  }

  .footer-bottom {
    padding-top: 2rem;
  }
}