/* Estil Dental Mollerussa - Main Stylesheet */
:root {
  --primary: #85915d;
  --primary-hover: #727e4e;
  --primary-light: #f4f6ec;
  --secondary: #2b3940;
  --dark: #1e262c;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s ease-in-out;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--gray-800); background-color: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3, h4, h5 { color: var(--secondary); font-weight: 700; line-height: 1.25; }
.text-center { text-align: center; }
.subheading { display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 0.5rem; }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.25rem; margin-bottom: 0.75rem; }
.section-desc { max-width: 650px; margin: 0 auto; color: var(--gray-600); font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(118, 158, 46, 0.35); }
.btn-secondary { background-color: var(--secondary); color: var(--white); }
.btn-secondary:hover { background-color: var(--dark); color: var(--white); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--secondary); }
.btn-light:hover { background: var(--gray-100); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--secondary); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }
.full-width { width: 100%; }

.top-bar { background: var(--secondary); color: var(--gray-200); font-size: 0.82rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right { display: flex; align-items: center; gap: 1.25rem; }
.top-phone { font-weight: 600; color: var(--white); }
.top-phone:hover { color: var(--primary); }
.lang-switcher { display: flex; align-items: center; gap: 0.35rem; }
.lang-btn { background: none; border: none; color: var(--gray-200); font-weight: 600; cursor: pointer; font-size: 0.8rem; padding: 2px 4px; border-radius: 4px; }
.lang-btn.active { color: var(--white); background: var(--primary); }
.lang-divider { opacity: 0.4; }

.site-header { position: sticky; top: 0; background: var(--white); box-shadow: var(--shadow-sm); z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; }
.logo { display: flex; flex-direction: column; }
.logo-brand { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.5px; color: var(--secondary); line-height: 1; }
.logo-accent { color: var(--primary); }
.logo-tagline { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-600); font-weight: 600; margin-top: 2px; }
.main-nav ul { display: flex; list-style: none; align-items: center; gap: 1.8rem; }
.nav-link { font-weight: 600; color: var(--secondary); font-size: 0.95rem; position: relative; padding-bottom: 4px; }
.nav-link:hover { color: var(--primary); }
.nav-btn { padding: 0.55rem 1.25rem; }
.mobile-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.mobile-toggle span { display: block; width: 26px; height: 3px; background: var(--secondary); border-radius: 2px; }

.hero-section { position: relative; background: linear-gradient(135deg, rgba(248, 250, 245, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%), url('../img/recepcio.jpg') center/cover no-repeat; padding: 6.5rem 0 5.5rem; }
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.badge { display: inline-block; background: var(--primary-light); color: var(--primary-hover); font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.85rem; border-radius: 20px; margin-bottom: 1.25rem; border: 1px solid rgba(118, 158, 46, 0.25); }
.hero-section h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; color: var(--secondary); }
.hero-section h1 .highlight { color: var(--primary); }
.hero-lead { font-size: 1.2rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.hero-features { display: flex; gap: 1.8rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.8rem; }
.hero-feat-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; color: var(--secondary); }

.info-bar-section { background: var(--secondary); color: var(--white); padding: 2.2rem 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-card { display: flex; align-items: center; gap: 1.2rem; }
.info-icon { font-size: 2rem; background: rgba(255,255,255,0.1); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.info-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.25rem; }
.info-card p, .info-card a { color: rgba(255,255,255,0.78); font-size: 0.9rem; }

.about-section { padding: 6rem 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.about-text p { color: var(--gray-600); margin-bottom: 1.25rem; font-size: 1.05rem; }
.about-bullets { list-style: none; margin: 1.5rem 0 2rem; }
.about-bullets li { margin-bottom: 0.75rem; font-weight: 600; color: var(--secondary); }
.about-images { display: flex; flex-direction: column; gap: 1.5rem; }
.about-images .img-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-images .main-img img { width: 100%; height: 280px; object-fit: cover; }
.about-images .side-img img { width: 100%; height: 240px; object-fit: cover; }

.services-section { padding: 6rem 0; background: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background: var(--white); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-icon { font-size: 2.4rem; margin-bottom: 1.2rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; }

.gallery-section { padding: 6rem 0; background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; height: 260px; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); padding: 1.2rem 1rem 0.8rem; font-weight: 600; font-size: 0.95rem; }
.gallery-item:hover img { transform: scale(1.06); }

.cta-banner { background: linear-gradient(135deg, var(--secondary) 0%, #1a2328 100%); color: var(--white); padding: 4.5rem 0; }
.cta-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-content h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 0.5rem; }
.cta-content p { color: var(--gray-200); font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1rem; flex-shrink: 0; }

.contact-section { padding: 6rem 0; background: var(--light-bg); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; margin-bottom: 3.5rem; }
.contact-info-panel, .contact-form-panel { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.panel-desc { color: var(--gray-600); margin: 0.6rem 0 1.8rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }
.detail-row { display: flex; gap: 1rem; align-items: flex-start; }
.detail-icon { font-size: 1.3rem; background: var(--primary-light); color: var(--primary-hover); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.detail-row strong { display: block; color: var(--secondary); font-size: 0.92rem; }
.detail-row p, .detail-row a { color: var(--gray-600); font-size: 0.95rem; }
.direct-call-box { background: var(--primary-light); padding: 1.25rem; border-radius: 8px; text-align: center; }
.direct-call-box span { display: block; font-weight: 700; color: var(--secondary); margin-bottom: 0.6rem; font-size: 0.95rem; }

.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--secondary); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; color: var(--gray-800); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(118, 158, 46, 0.15); }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--gray-600); }
.form-checkbox input { margin-top: 3px; }
.form-feedback { margin-top: 1rem; padding: 0.8rem; border-radius: 6px; font-size: 0.9rem; display: none; }
.form-feedback.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.site-footer { background: var(--dark); color: var(--gray-200); padding: 4.5rem 0 0; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; }
.logo-footer .logo-brand { color: var(--white); }
.footer-tagline { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 0.75rem; }
.footer-reg { color: var(--primary); font-size: 0.82rem; margin-top: 0.5rem; font-weight: 600; }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-item { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); text-align: center; }

.lightbox-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; flex-direction: column; }
.lightbox-content { max-width: 85%; max-height: 80%; border-radius: 8px; }
.lightbox-caption { color: #fff; margin-top: 15px; font-size: 1.1rem; text-align: center; }
.lightbox-close { position: absolute; top: 25px; right: 35px; color: #fff; font-size: 35px; cursor: pointer; }

.modal { display: none; position: fixed; z-index: 2500; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); overflow-y: auto; padding: 2rem 1rem; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-dialog { background: var(--white); border-radius: var(--radius); max-width: 650px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 85vh; display: flex; flex-direction: column; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--gray-600); }
.modal-body { padding: 1.5rem; overflow-y: auto; font-size: 0.92rem; line-height: 1.7; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); text-align: right; background: var(--light-bg); }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: var(--white); padding: 1.2rem 0; box-shadow: 0 -4px 15px rgba(0,0,0,0.2); z-index: 1500; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cookie-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--white); }
.cookie-text p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin: 0; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

@media (max-width: 992px) {
  .hero-section h1 { font-size: 2.6rem; }
  .info-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-content { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .top-bar-content { flex-direction: column; gap: 0.3rem; text-align: center; }
  .mobile-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1.5rem; box-shadow: var(--shadow-md); display: none; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-section { padding: 4rem 0 3rem; }
  .hero-section h1 { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; }
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.logo-img-footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 14px;
  border-radius: 8px;
  height: 52px;
  box-shadow: var(--shadow-sm);
}

.form-feedback.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
