/* ========================================
   Odontología Work Plaza - Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary: #2c3a8f;
  --primary-dark: #1e2a6e;
  --primary-light: #4a5cb8;
  --secondary: #4ecdc4;
  --accent: #00b4d8;
  --dark: #1a1a2e;
  --dark-light: #2d2d44;
  --gray-dark: #4a4a5a;
  --gray: #6c757d;
  --gray-light: #a0a0b0;
  --light: #f8f9fa;
  --white: #ffffff;
  --success: #28a745;
  --error: #dc3545;

  --font-primary: "Poppins", sans-serif;
  --font-heading: "Playfair Display", serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 8px 30px rgba(44, 58, 143, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 45px;
  height: 45px;
}

/* Logo switching based on scroll state */
.logo .logo-white {
  display: block;
}

.logo .logo-dark {
  display: none;
}

#header.scrolled .logo .logo-white {
  display: none;
}

#header.scrolled .logo .logo-dark {
  display: block;
}

.logo span {
  font-family: var(--font-primary);
  font-size: 18px;
  color: var(--white);
  transition: var(--transition);
}

#header.scrolled .logo span {
  color: var(--dark);
}

.logo strong {
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 5px 0;
}

#header.scrolled .nav-link {
  color: var(--dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

#header.scrolled .nav-toggle span {
  background: var(--dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(44, 58, 143, 0.9) 0%,
    rgba(30, 42, 110, 0.85) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--secondary);
}

.hero-content > p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.hero-feature i {
  font-size: 28px;
  color: var(--secondary);
}

.hero-feature span {
  font-size: 13px;
  opacity: 0.9;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 24px;
  animation: bounce 2s infinite;
  z-index: 2;
}

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

/* Sections */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(44, 58, 143, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 15px;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  color: var(--gray);
  font-size: 17px;
}

/* About Section */
.about {
  background: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-primary);
}

.about-image-badge .years {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.about-image-badge .text {
  font-size: 12px;
  opacity: 0.9;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--gray-dark);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  color: var(--white);
  font-size: 20px;
}

.feature-text h4 {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(44, 58, 143, 0.1) 0%,
    rgba(78, 205, 196, 0.1) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
}

.service-icon i {
  font-size: 32px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* Insurance Section */
.insurance {
  background: var(--primary);
}

.insurance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.insurance-text {
  text-align: center;
  color: var(--white);
}

.insurance-text h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.insurance-text h3 i {
  margin-right: 10px;
}

.insurance-text p {
  opacity: 0.9;
}

.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.insurance-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.insurance-item:hover {
  background: var(--white);
  color: var(--primary);
}

/* Team Section */
.team {
  background: var(--light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

/* .team-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* .team-image {
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  height: 200px;
} */

.team-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder i {
  font-size: 50px;
  color: var(--white);
}

.team-info {
  padding: 30px;
}

.team-info h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-role {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
}

.team-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  padding: 10px 15px;
  background: var(--light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.team-location i {
  color: var(--primary);
}

.team-schedule {
  margin-bottom: 20px;
}

.team-schedule h4 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-schedule h4 i {
  color: var(--secondary);
}

.team-schedule ul li {
  font-size: 13px;
  color: var(--gray-dark);
  padding: 5px 0;
  border-bottom: 1px solid var(--light);
}

.team-schedule ul li:last-child {
  border-bottom: none;
}

.team-schedule ul li strong {
  color: var(--dark);
  font-weight: 500;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 22px;
  color: var(--white);
}

.contact-text h4 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-text p {
  font-size: 15px;
  color: var(--gray-dark);
  margin-bottom: 0;
}

.contact-text a:hover {
  color: var(--primary);
}

.contact-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(44, 58, 143, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.contact-social {
  margin-top: 20px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}

.contact-social h4 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--dark);
  background: var(--light);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  color: var(--error);
}

/* Contact Map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  display: block;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 16px;
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 14px;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-services ul li {
  font-size: 14px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.7;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .about-content {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--dark);
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .hero-features {
    gap: 25px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-badge {
    right: 20px;
    bottom: -15px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 70px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-form-wrapper {
    padding: 25px;
  }

  .insurance-logos {
    gap: 10px;
  }

  .insurance-item {
    padding: 8px 15px;
    font-size: 13px;
  }
}
