:root {
  --primary: #0077B6;
  --primary-hover: #005f92;
  --primary-light: #e6f3f8;
  --secondary: #4CAF50;
  --dark: #212529;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
}

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

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

/* Estilos para el perfil del doctor y collage */
.doctor-profile-card {
  position: relative;
  background-color: white;
  padding: 20px;
  overflow: visible;
  transition: all 0.5s ease;
}

.collage-container {
  position: relative;
  height: 550px;
  overflow: visible;
  display: block;
  transition: all 0.5s ease;
}

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

.collage-item {
  position: absolute;
  overflow: hidden;
  transition: all 0.8s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.collage-item:hover img {
  transform: scale(1.05);
}

/* Medalla de experiencia */
.doctor-experience-badge {
  position: absolute;
  bottom: 30px;
  right: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #005f92 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 30px 0 0 30px;
  box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  z-index: 10;
}

.doctor-experience-badge .icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.doctor-experience-badge .text {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* 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;
}

/* Estilos específicos para tarjeta de currículum */
.curriculum-card .curriculum-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  position: relative;
}

.curriculum-card .curriculum-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-light), transparent);
}

.curriculum-card .item-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: center;
  background-color: var(--primary-light);
  padding: 5px;
  border-radius: 4px;
}

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

/* Estilos específicos para tarjeta de sociedades */
.sociedades-card .sociedades-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sociedades-card .sociedades-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--gray);
}

.sociedades-card .sociedades-list li:last-child {
  border-bottom: none;
}

.sociedades-card .sociedades-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.8rem;
}

.collage-item-main {
  top: 10%;
  left: 5%;
  width: 60%;
  height: 70%;
  z-index: 1;
  border: 8px solid white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: rotate(-3deg);
}

.collage-item-secondary {
  top: 25%;
  right: 5%;
  width: 60%;
  height: 68%;
  z-index: 2;
  border: 8px solid white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: rotate(4deg);
}

@media (max-width: 992px) {
  .collage-container {
    height: 450px;
  }
  
  .doctor-experience-badge {
    bottom: 20px;
    padding: 8px 15px;
  }
  
  .doctor-experience-badge .icon {
    font-size: 1rem;
  }
  
  .doctor-experience-badge .text {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .collage-container {
    height: 400px;
  }
  
  .collage-item-main {
    top: 12%;
    left: 5%;
    width: 55%;
    height: 65%;
    border: 6px solid white;
  }
  
  .collage-item-secondary {
    top: 22%;
    right: 5%;
    width: 55%;
    height: 65%;
    border: 6px solid white;
  }
  
  .curriculum-card .item-title {
    font-size: 1rem;
  }
  
  .curriculum-card .item-description {
    font-size: 0.85rem;
  }
  
  .sociedades-card .sociedades-list li {
    padding: 6px 0;
    font-size: 0.85rem;
  }
}

/* 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);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #00a7e1 100%);
  color: white;
  padding: 8rem 0 5rem;
}

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

.hero-section p {
  opacity: 0.9;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background-image: url('../images/cirugia_j1.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: -1;
  transform: scale(1);
  right: auto;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  transform: scale(1.2); /* Imagen principal 20% más grande */
  margin-right: -20px; /* Mover la imagen principal más a la derecha */
}

/* 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;
}

/* 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;
}

/* 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);
}

/* 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;
}

/* 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;
}

/* 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;
  }
}

/* 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;
}

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

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

.servicio-item p {
  color: #666;
  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: #b3b3b3; /* Gris más claro para el lado del collage */
  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; /* Alineados por abajo */
}

.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;
}

.servicios-content {
  background-color: #f0f0f0; /* Gris claro para el lado de la información */
  min-height: 100vh;
  width: 100%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.servicios-content h2, .servicios-title {
  color: #888888; /* Gris aún más claro para el título principal */
  font-weight: 700;
  margin-bottom: 20px;
}

.servicio-item h3 {
  color: #666666; /* Gris más claro para los títulos de servicios */
}

.servicios-content p {
  color: #555555;
}

.servicios-img-frame {
  position: absolute;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: all 0.3s ease;
}

.servicios-img-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.servicios-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.servicios-img-frame:hover img {
  transform: scale(1.05);
}

.servicios-img-principal {
  top: 40px;
  left: 10%;
  width: 70%;
  height: 350px;
  z-index: 3;
}

.servicios-img-secundaria {
  top: 120px;
  right: 5%;
  width: 40%;
  height: 200px;
  z-index: 2;
}

.servicios-img-terciaria {
  top: 250px;
  left: 20%;
  width: 50%;
  height: 220px;
  z-index: 1;
}

.servicios-badge {
  position: absolute;
  top: 80px;
  right: 15%;
  background-color: rgba(34, 34, 34, 0.9);
  color: #fff;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  z-index: 4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.servicios-badge span:first-child {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Contenido adicional de servicios en el collage */
.servicios-additional-content {
  padding: 30px;
  background-color: #f2f2f2;
}

.servicio-destacado h3 {
  color: #444444;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.servicio-destacado p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 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;
  }
}

@media (max-width: 768px) {
  .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;
  }
}

/* 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; /* Ocultar en móviles */
}

@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;
  }
}

/* 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);
  }
}

/* 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;
  }
}
