/* ============================================
   CLÍNICA VETERINARIA AMIGOS · Global CSS
   Valdemira · evoluxiastudio.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ===== VARIABLES ===== */
:root {
  --teal:        #4ABFAD;
  --teal-dark:   #36A090;
  --teal-light:  #E8F7F5;
  --teal-mid:    #B8E8E2;
  --navy:        #2D4A6B;
  --navy-dark:   #1E3352;
  --navy-light:  #EEF2F7;
  --coral:       #E8897A;
  --warm-white:  #FAFAF8;
  --off-white:   #F4F2EF;
  --gray-light:  #E8E5E0;
  --gray-mid:    #9B9690;
  --gray-text:   #5A5651;
  --dark:        #1A1714;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
  --shadow-xs:   0 1px 4px rgba(45,74,107,0.06);
  --shadow-sm:   0 2px 12px rgba(45,74,107,0.09);
  --shadow-md:   0 8px 32px rgba(45,74,107,0.13);
  --shadow-lg:   0 20px 60px rgba(45,74,107,0.16);
  --radius:      18px;
  --radius-sm:   10px;
  --t:           0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { color: var(--gray-text); line-height: 1.72; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }

/* ===== LABELS & TITLES ===== */
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 18px;
}
.section-title   { color: var(--navy); margin-bottom: 14px; }
.section-subtitle{ color: var(--gray-text); font-size: 1.05rem; max-width: 560px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--t);
}
.btn-primary  { background: var(--teal); color: #fff; box-shadow: 0 4px 18px rgba(74,191,173,.32); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,191,173,.42); }
.btn-outline  { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-white    { background: #fff; color: var(--teal-dark); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost    { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow var(--t);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 70px;
}
/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.nav-logo-sub  { font-size: 0.62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
/* Nav links */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--gray-text);
  transition: color var(--t); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transition: var(--t); border-radius: 2px;
}
.nav-links a:hover        { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active       { color: var(--navy); font-weight: 700; }
.nav-links a.active::after{ transform: scaleX(1); }
/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--t); }
/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--warm-white); z-index: 999;
  padding: 40px 28px; flex-direction: column; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; color: var(--navy); }
.mobile-menu a.active { color: var(--teal-dark); }
.mobile-menu .btn { width: fit-content; }

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--teal-light) 60%, #d4eef5 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,191,173,.1) 0%, transparent 70%);
}
.page-hero-inner { position: relative; }
.page-hero-breadcrumb {
  font-size: 0.78rem; font-weight: 500;
  color: var(--gray-mid); margin-bottom: 20px;
}
.page-hero-breadcrumb a { color: var(--teal-dark); }
.page-hero-breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: var(--navy); margin-bottom: 16px; }
.page-hero p  { font-size: 1.1rem; max-width: 560px; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--navy); padding: 22px 0; }
.trust-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.trust-item  { display: flex; align-items: center; gap: 10px; color: #fff; }
.trust-icon  { font-size: 1.2rem; }
.trust-text  { font-size: 0.84rem; font-weight: 500; opacity: .82; }
.trust-div   { width: 1px; height: 26px; background: rgba(255,255,255,.15); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #3A6B8A 50%, var(--teal-dark) 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(74,191,173,.1);
}
.cta-banner-inner { text-align: center; position: relative; color: #fff; }
.cta-banner h2   { color: #fff; margin-bottom: 14px; }
.cta-banner p    { color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-actions     { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== CARDS (shared) ===== */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ===== FORM ===== */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 15px;
  border: 2px solid var(--gray-light); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--dark); background: var(--off-white);
  transition: border-color var(--t); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== FOOTER ===== */
footer { background: var(--navy-dark); color: #fff; padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.footer-tagline    { font-style: italic; font-size: 0.9rem; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 22px; }
.footer-social     { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t); font-size: .9rem;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-3px); }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.footer-col ul   { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,.55); transition: var(--t); }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  padding: 22px 0; display: flex;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom-l { font-size: 0.8rem; color: rgba(255,255,255,.38); }
.footer-bottom-r { font-size: 0.8rem; color: rgba(255,255,255,.38); }
.footer-bottom-r a { color: var(--teal); font-weight: 600; transition: var(--t); }
.footer-bottom-r a:hover { color: #fff; }

/* ===== FLOAT WHATSAPP ===== */
.float-wa { position: fixed; bottom: 26px; right: 26px; z-index: 9999; display: flex; align-items: center; gap: 10px; }
.float-wa-label {
  background: #fff; border-radius: 100px; padding: 9px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(16px); transition: var(--t);
}
.float-wa:hover .float-wa-label { opacity: 1; transform: translateX(0); }
.float-wa-btn {
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.38); transition: var(--t); flex-shrink: 0;
}
.float-wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
.fade-in { opacity:0; transform:translateY(28px); transition:opacity .6s ease,transform .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media(max-width:768px){
  .section{ padding:64px 0; }
  .nav-links,.nav-cta{ display:none; }
  .hamburger{ display:flex; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-bottom{ flex-direction:column; text-align:center; }
  .form-row{ grid-template-columns:1fr; }
  .trust-bar-inner{ flex-direction:column; align-items:flex-start; gap:14px; }
  .trust-div{ display:none; }
}
@media(max-width:480px){
  .footer-grid{ grid-template-columns:1fr; }
}
