/* Clínicas Corpodental - Ciudad Real */
/* Paleta: Rosa/Rosado elegante */

:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fb7185;
  --accent: #f472b6;
  --accent-light: #f9a8d4;
  --accent-dark: #db2777;
  --white: #ffffff;
  --gray-50: #fff1f2;
  --gray-100: #ffe4e6;
  --gray-200: #fecdd3;
  --gray-300: #fda4af;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.1), 0 2px 4px -1px rgba(225, 29, 72, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(225, 29, 72, 0.1), 0 4px 6px -2px rgba(225, 29, 72, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(225, 29, 72, 0.1), 0 10px 10px -5px rgba(225, 29, 72, 0.04);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.top-bar {
  background: var(--gradient);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.3s;
}

.top-bar a:hover {
  opacity: 0.85;
}

.nav-main {
  padding: 1rem 0;
  background: var(--white);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gray-800);
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--gray-50);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

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

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gray-700);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.05;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-feature-icon {
  width: 45px;
  height: 45px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-feature span {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-card {
  position: absolute;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.hero-card-1 {
  top: 15%;
  left: -10%;
}

.hero-card-2 {
  bottom: 20%;
  right: -5%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-card-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
}

.hero-card-text p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* Services */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: var(--gradient);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* Clinics */
.clinics {
  background: var(--gray-50);
}

.clinics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.clinic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.clinic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.clinic-image {
  height: 140px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.clinic-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--white);
  color: var(--primary);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.clinic-content {
  padding: 1.25rem;
}

.clinic-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.clinic-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clinic-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.clinic-info-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-50);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.clinic-info-item p {
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.4;
}

.clinic-info-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.clinic-info-item a:hover {
  text-decoration: underline;
}

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

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

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

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-experience .number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

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

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-content h2 span {
  color: var(--primary);
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.about-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* CTA */
.cta {
  background: var(--gradient);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact */
.contact {
  background: var(--gray-50);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s;
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 45px;
  height: 45px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

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

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.contact-form > p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

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

/* Page Header */
.page-header {
  padding: 9rem 0 3rem;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-700);
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  background: var(--gradient);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: var(--primary-light);
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container,
  .about .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

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

@media (max-width: 768px) {
  .top-bar .container {
    justify-content: center;
  }

  .top-bar > .container > div:last-child {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    align-items: stretch;
    gap: 0.25rem;
  }

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

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-menu .btn {
    margin-top: 1rem;
  }

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

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

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

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

  .hero {
    padding: 8rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-card {
    display: none;
  }

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

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

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

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

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

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

  .section-header h2 {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

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

  .footer-brand .logo {
    justify-content: center;
  }
}
