:root {
  /* Colores principales de la marca */
  --primary: #0077B6;
  --primary-hover: #005f92;
  --primary-light: #e6f3f8;
  --primary-dark: #004c73;
  
  /* Colores secundarios */
  --secondary: #FF6B35;
  --secondary-hover: #E55A2B;
  --secondary-light: #ff8c5a;
  
  /* Colores de acento */
  --accent: #4CAF50;
  --accent-hover: #45a049;
  --accent-light: #e8f5e8;
  
  /* Colores neutrales */
  --dark: #212529;
  --dark-light: #343a40;
  --light: #f8f9fa;
  --light-dark: #e9ecef;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #495057;
  
  /* Colores metálicos */
  --metal: #8E8E93;
  --metal-light: #C7C7CC;
  --metal-dark: #636366;
  
  /* Sombras y efectos */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Protección de imágenes */
img {
  pointer-events: none;
  user-select: none;
}

/* Header & Navegación */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.sticky-top {
  padding: 0.25rem 0;
  background-color: white;
  z-index: 1030;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
}

.navbar-brand p {
  font-size: 0.7rem;
  margin-bottom: 0;
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,128L48,144C96,160,192,192,288,202.7C384,213,480,203,576,170.7C672,139,768,85,864,69.3C960,53,1056,75,1152,96C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
}

.hero-section h1 {
  font-weight: 700;
  line-height: 1.2;
}

.hero-section p {
  opacity: 0.9;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

/* Hero Section Encabezados */
.hero-section h4 {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-section h1 {
  font-size: 2.8rem;
  color: white;
}

.hero-section h3 {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-section h3 strong {
  font-weight: 700;
}

.narrow-text {
  max-width: 85%;
}

.hero-section .small {
  line-height: 1.5;
  opacity: 0.85;
  font-size: 0.85rem;
}

.hero-section .small.fw-bold {
  opacity: 0.95;
}

.highlight-text {
  color: #fbee37;
  font-size: 1.4em;
}

/* Pilares Profesionales */
.pilares-profesionales {
  margin-top: 2rem;
}

.pilar-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.pilar-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.pilar-icon {
  margin-bottom: 1rem;
}

.pilar-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pilar-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Secciones generales */
.section {
  padding: 5rem 0;
}

.section-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.bg-light {
  background-color: #f8f9fa;
}

.divider {
  height: 4px;
  width: 60px;
  background: var(--primary);
  margin: 1rem auto 2rem;
  border-radius: 2px;
}

/* Iconos circulares */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

/* Tarjetas de información */
.info-card {
  background-color: white;
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.info-card .card-title {
  position: relative;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
}

/* Servicios */
.service-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.icon-box i {
  font-size: 1.5rem;
  color: var(--primary);
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

/* Estilos para la sección de servicios con estilo profesional */
.servicios-section {
  padding: 0;
  background-color: transparent;
  overflow: hidden;
}

/* Título de la sección de servicios */
.servicios-header {
  margin-bottom: 30px;
}

.servicios-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  position: relative;
  margin-bottom: 0;
}

/* Contenido de servicios del lado izquierdo */
.servicios-content {
  margin-bottom: 30px;
  background-color: var(--light);
  min-height: 100vh;
  width: 100%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.servicio-item {
  margin-bottom: 30px;
  position: relative;
}

.servicio-item h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
}

.servicio-item p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Fondos de los lados izquierdo y derecho de servicios */
.servicios-collage {
  position: relative;
  background-color: var(--gray-light);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collage con dos imágenes superpuestas, alineadas por abajo */
.simple-collage {
  position: relative;
  width: 80%;
  max-width: 600px;
  height: 450px;
  margin: 50px auto;
}

/* Estilos base para las imágenes del collage */
.collage-img-1,
.collage-img-2 {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  bottom: 0;
}

.collage-img-1 img,
.collage-img-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Imagen principal (más alta) */
.collage-img-1 {
  width: 60%;
  height: 450px;
  left: 0;
  z-index: 1;
}

/* Imagen secundaria */
.collage-img-2 {
  width: 50%;
  height: 370px;
  right: 0;
  z-index: 2;
}

/* Proyectos */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-img-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-img-container img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 119, 182, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
}

/* Testimonios */
.testimonial-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.rating i {
  color: #ffc107;
}

/* Testimonials Section - Diseño Artístico */
.testimonials-artistic {
  position: relative;
  background-color: #f8f9fa;
  padding: 4rem 0;
  overflow: hidden;
}

.testimonials-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f9fa;
  z-index: 0;
}

@media (min-width: 992px) {
  .testimonials-bg-pattern {
    background-image: radial-gradient(circle at 10% 20%, rgba(220, 220, 220, 0.2) 0%, transparent 10%),
                      radial-gradient(circle at 90% 30%, rgba(220, 220, 220, 0.2) 0%, transparent 20%);
  }
}

.text-gradient {
  background: linear-gradient(90deg, #555555 0%, #888888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.title-accent span {
  display: inline-block;
  height: 1px;
  width: 60px;
  background-color: #aaaaaa;
}

.title-accent i {
  margin: 0  15px;
  color: #888888;
  font-size: 0.9rem;
}

.pulse-icon {
  display: inline-block;
}

@media (min-width: 992px) {
  .pulse-icon {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
}

.testimonials-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  z-index: 1;
}

/* Burbujas de Testimonios */
.testimonial-bubble {
  position: relative;
  max-width: 70%;
  margin-bottom: 3rem;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .testimonial-bubble:hover {
    transform: translateY(-5px);
  }
}

.testimonial-left {
  margin-left: 0;
}

.testimonial-right {
  margin-left: auto;
}

.testimonial-inner {
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: -10px;
  left: 20px;
  color: #e6e6e6;
  font-size: 2rem;
  opacity: 0.7;
}

.bubble-tail {
  position: absolute;
  bottom: -15px;
  width: 30px;
  height: 30px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-left .bubble-tail {
  left: 30px;
}

.testimonial-right .bubble-tail {
  right: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
  margin-right: 15px;
}

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

.author-info h5 {
  margin: 0;
  font-size: 1.1rem;
  color: #555555;
}

.rating {
  color: #ffba08;
  margin-top: 5px;
}

.rating i {
  margin-right: 3px;
}

/* Elementos flotantes decorativos */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  display: none;
}

@media (min-width: 992px) {
  .floating-elements {
    display: block;
  }
  
  .floating-element {
    position: absolute;
    color: rgba(150, 150, 150, 0.15);
  }
  
  .fe-1 {
    top: 15%;
    left: 5%;
    font-size: 2rem;
  }
  
  .fe-2 {
    top: 80%;
    left: 85%;
    font-size: 3rem;
  }
  
  .fe-3 {
    top: 30%;
    left: 90%;
    font-size: 2.5rem;
  }
}

/* Contacto */
.contact-info .icon-box {
  width: 50px;
  height: 50px;
}

.contact-form-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
  border-color: var(--primary);
}

/* Footer */
.footer {
  background-color: #212529;
  color: white;
}

.footer h3 {
  font-weight: 600;
}

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

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

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons a {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Botones */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  animation: whatsapp-bounce 2s infinite;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  background: #00E676;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.whatsapp-button:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
  text-decoration: none;
}

.whatsapp-button i {
  font-size: 24px;
  margin-right: 10px;
  animation: whatsapp-icon-pulse 1.5s infinite;
}

.whatsapp-text {
  white-space: nowrap;
  margin-left: 5px;
}

/* Animaciones */
@keyframes whatsapp-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes whatsapp-icon-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Animaciones y efectos */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .servicios-section {
    padding: 40px 0;
  }
  
  .servicios-title {
    font-size: 1.6rem;
  }
  
  .servicios-img-frame {
    height: 280px;
  }
  
  .servicios-additional-content {
    padding: 20px;
  }
  
  .servicio-item {
    margin-bottom: 20px;
  }
  
  .servicio-item h3 {
    font-size: 1rem;
  }
  
  .servicio-item p {
    font-size: 0.9rem;
  }
  
  .servicio-destacado h3 {
    font-size: 1.1rem;
  }
  
  .servicio-destacado p {
    font-size: 0.9rem;
  }
}

/* Responsive para el botón de WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    left: 15px;
  }
  
  .whatsapp-button {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .whatsapp-button i {
    font-size: 20px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .whatsapp-text {
    display: none;
  }
  
  .whatsapp-button {
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
  }
  
  .whatsapp-button i {
    margin-right: 0;
    font-size: 24px;
  }
}

/* Responsive para servicios */
@media (max-width: 992px) {
  .servicios-section {
    padding: 60px 0;
  }
  
  .servicios-title {
    font-size: 1.8rem;
  }
  
  .servicios-img-frame {
    height: 350px;
  }
  
  .servicios-additional-content {
    padding: 25px;
  }
}

/* Estilos para la sección Acerca de - Collage de imágenes */
.doctor-profile-card {
  position: relative;
  overflow: hidden;
}

.collage-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.collage-item {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-item-main {
  width: 65%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.collage-item-secondary {
  width: 45%;
  height: 45%;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.doctor-experience-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 119, 182, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  z-index: 3;
}

.doctor-experience-badge .icon {
  margin-right: 8px;
}

/* Estilos para las tarjetas de Misión y Visión */
.curriculum-card, .sociedades-card {
  background-color: white;
}

.curriculum-item {
  margin-bottom: 1.5rem;
}

.curriculum-item:last-child {
  margin-bottom: 0;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.item-description {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0;
}

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

.sociedades-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.sociedades-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

.sociedades-list li:last-child {
  margin-bottom: 0;
}

/* Responsive para la sección Acerca de */
@media (max-width: 992px) {
  .collage-container {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .collage-container {
    height: 300px;
  }
  
  .collage-item-main {
    width: 60%;
  }
  
  .collage-item-secondary {
    width: 40%;
    height: 40%;
  }
}

@media (max-width: 576px) {
  .collage-container {
    height: 250px;
  }
  
  .collage-item-main {
    width: 100%;
    height: 70%;
  }
  
  .collage-item-secondary {
    width: 50%;
    height: 25%;
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
  }
}