/*
 * Dental Bonilla Website Stylesheet
 *
 * This stylesheet defines the look and feel for the Dental Bonilla
 * website. It uses a simple colour palette inspired by dental and
 * medical themes—clean whites with accents of blue—and a modern
 * layout. All pages share a common navigation bar and footer while
 * individual sections are styled with cards and grids for clarity.
 */

/* Root variables for quick theming */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap');

:root {
  --color-primary: #0d6efd; /* Blue accent for buttons and headings */
  --color-secondary: #f1f5f9; /* Light grey background for sections */
  --color-dark: #0a1f44; /* Dark text and footer background */
  --color-light: #ffffff; /* White for cards and content backgrounds */
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
}

/* Navigation bar */
header {
  background-color: var(--color-primary);
  color: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-light);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  opacity: 0.7;
}

/* Hero section used on index page */
.hero {
  background: linear-gradient(90deg, var(--color-dark), var(--color-primary));
  color: var(--color-light);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: var(--color-light);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: #e2e8f0;
}

/* Main container */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 0.25rem;
}

#marcas-overview {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Arial', sans-serif;
}

#marcas-overview h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#marcas-overview > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

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

/* Logo circular */
.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 4px solid #3498db;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #2980b9;
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

.brand-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.brand-logo:hover img {
    transform: scale(1.1);
}

/* Efecto de brillo en el logo */
.brand-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover .brand-logo::after {
    transform: rotate(45deg) translateX(100%);
}

.card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: #3498db;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f99);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Colores específicos por marca */
.card[data-brand="runyes-dental"] .brand-logo {
    border-color: #e74c3c;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.card[data-brand="runyes-digital"] .brand-logo {
    border-color: #9b59b6;
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
}

.card[data-brand="yeti"] .brand-logo {
    border-color: #f39c12;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.card[data-brand="ivoclar"] .brand-logo {
    border-color: #27ae60;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.card[data-brand="lysol"] .brand-logo {
    border-color: #34495e;
    box-shadow: 0 8px 20px rgba(52, 73, 94, 0.3);
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
    }
    
    #marcas-overview h2 {
        font-size: 2rem;
    }
}

/* Card grid for lists of products or features */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--color-light);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #334155;
}

.card ul {
  list-style-type: disc;
  margin-left: 1.2rem;
  margin-top: 0.5rem;
  color: #334155;
}

.card ul li {
  margin-bottom: 0.25rem;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 2rem 1rem;
}

footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

footer h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

footer p,
footer a {
  font-size: 0.9rem;
  color: var(--color-light);
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* Contact section grid and maps */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card {
  background-color: var(--color-light);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contact-card p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact-card iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Carousel section styles */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.carousel-item {
  display: none;
  position: relative;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 80%;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 15%;
  left: 10%;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  max-width: 60%;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/*
 * Control the size of carousel images
 *
 * By default the carousel expands to fit the height of its images, which can
 * result in very tall sections if the original images have a large
 * aspect ratio. To limit the overall height of the carousel and ensure
 * consistent sizing across pages, we explicitly set a maximum height on
 * the carousel container and make the images fill that height while
 * preserving their aspect ratio. The object-fit property crops the image
 * when necessary without distorting it. Adjust the max-height value to
 * change the visible height of the carousel.
 */
.carousel {
  max-height: 450px;
}

.carousel-item img {
  width: 60%;
  height: 60%;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .navbar-brand {
    font-size: 1.25rem;
  }
}
.contact-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Arial', sans-serif;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-section > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
   grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Contenedor de la foto circular */
.branch-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 5px solid #3498db;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.branch-photo:hover {
    transform: scale(1.05);
}

.branch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-card h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-card p {
    margin: 12px 0;
    color: #555;
    line-height: 1.6;
}

.contact-card strong {
    color: #2c3e50;
    font-weight: 600;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-card iframe {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.email-general {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-general strong {
    color: #2c3e50;
    font-size: 1.2rem;
}

.email-general a {
    color: #3498db;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
}

.email-general a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .branch-photo {
        width: 120px;
        height: 120px;
    }
    
    .contact-section h2 {
        font-size: 2rem;
        


    }  
}




.wrapper {
  display: inline-flex;
  list-style: none;
}

.wrapper .icon {
  position: relative;
  background: #0a1f44;
  border-radius: 50%;
  padding: 5px;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.anchor {
  text-decoration: none;
  color: inherit;
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #ffffff;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
  background: #1877F2;
  color: #ffffff;
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: #1DA1F2;
  color: #ffffff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: #FF0063;
  color: #ffffff;
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
  background: #111111;
  color: #ffffff;
}

.wrapper .youtube:hover,
.wrapper .youtube:hover .tooltip,
.wrapper .youtube:hover .tooltip::before {
  background: #CD201F;
  color: #ffffff;
}

.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
  background: #0A66C2;
  color: #ffffff;
}