/* =============================================
   Instituto Kairo's Odontologia - Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96E;
  --gold-dark: #A07830;
  --gold-pale: #F5EDD5;
  --navy: #0A1628;
  --navy-light: #132040;
  --white: #FFFFFF;
  --off-white: #F9F7F2;
  --gray-light: #F0EDE6;
  --gray: #C8C0B0;
  --gray-dark: #7A7060;
  --text: #1A1510;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.2);
  --shadow-dark: 0 20px 60px rgba(10, 22, 40, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---- GOLD DIVIDER ---- */
.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 1rem auto;
}

.gold-line.left { margin-left: 0; }

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title strong {
  font-weight: 600;
  color: var(--navy);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.4);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar.light {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.logo-emblem svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .instituto {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.logo-text .kairos {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.08em;
}

.logo-text .odontologia {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gray);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

.nav-cta {
  font-size: 0.7rem !important;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow-gold) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav .mobile-cta {
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem !important;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand .logo-text .kairos { font-size: 1.5rem; }
.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.8;
  margin-top: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
}

.footer-col .contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ---- PAGE HERO (for inner pages) ---- */
.page-hero {
  height: 40vh;
  min-height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/escritoriodentro.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.page-hero-content {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 300;
}

/* ---- ANIMATE ON SCROLL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; }
}

/* ---- INSTAGRAM NAV ICON ---- */
.nav-instagram {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
}
.nav-instagram:hover { color: var(--gold); }

/* ---- FOOTER INSTAGRAM ---- */
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
  margin-top: 0.3rem;
}
.footer-ig:hover { color: var(--gold); }

/* ---- ALL BTN OVERRIDES TO WHATSAPP ---- */
.btn-gold, .btn-outline, .btn { cursor: pointer; }
