/* Psicoprevenconsultores · styles.css
   --teal:   #1AACAA
   --navy:   #272C49 solo lo pongo para no olvidarme del color principal  */
:root {
  --teal: #1AACAA;
  --teal-dark: #0F7D7B;
  --teal-light: #E1F5F5;
  --navy: #272C49;
  --navy-light: #3a4070;
  --white: #ffffff;
  --bg: #F4F6F9;
  --text: #444;
  --muted: #888;
  --border: #e5e5e5;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Mulish', 'Segoe UI', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Nunito', sans-serif; color: var(--navy); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Botones el diseño */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; padding: 12px 32px; border: none; cursor: pointer; transition: all .3s; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { opacity: .9; transform: translateY(-2px); }
.btn-pill { border-radius: 50px; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); padding: 14px; }
.btn-outline-white { background: var(--white); color: var(--teal); border: 2px solid var(--white); border-radius: 50px; }
.btn-outline-white:hover { background: var(--teal); color: var(--white); }

/* barra superior */
.top-bar {
  background: var(--navy);
  border-bottom: 2px solid var(--teal);
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: color .3s;
}
.top-bar-item:hover { color: var(--teal); }
.top-bar-item i { color: var(--teal); font-size: 12px; }
.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.2);
}

/* el header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0px; }
.logo-link { display: flex; align-items: center; gap: 12px; padding-left: 0px; }
.logo-img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--teal); object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900; color: var(--navy); }
.brand-accent { color: var(--teal); }
.brand-tagline { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); font-weight: 600; }


.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); padding: 8px 12px; border-radius: 6px; transition: color .3s; }
.nav-link:hover { color: var(--teal); }
.nav-close { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; cursor: pointer; z-index: 110; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }

/* el hero */
.hero { position: relative; min-height: 520px; overflow: hidden; display: flex; align-items: center; justify-content: flex-start; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,.80), rgba(255,255,255,.7), transparent); }
.hero-content { position: relative; z-index: 2; max-width: 560px; padding: 60px 0; text-align: left; margin-left: 5%; margin-right: auto; }
.hero-badge { display: inline-block; background: var(--teal); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 16px; border-radius: 50px; margin-bottom: 16px; font-family: 'Nunito', sans-serif; }
.hero h1 { font-size: 34px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.hero p { 
  color: #272C49; 
  font-size: 18px;      
  font-weight: 700;   
  margin-bottom: 24px; 
  text-shadow: 0px 0px 1px rgba(255,255,255,0.5); 
}


.stats { border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 32px; }
.stat-number { font-family: 'Nunito', sans-serif; font-size: 48px; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.stat-divider { width: 1px; height: 56px; background: var(--border); }


.about { padding: 64px 0; }
.about-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.section-tag { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; color: var(--teal); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.about-header h2 { font-size: 30px; font-weight: 900; line-height: 1.2; }
.about-intro { font-size: 14px; color: var(--muted); line-height: 1.8; text-align: justify; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; }
.about-card { padding: 40px 48px; }
.about-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.about-card p { font-size: 14px; line-height: 1.8; text-align: justify; }
.about-card--muted { background: var(--bg); }
.about-card--muted h3 { color: var(--navy); }
.about-card--muted p { color: var(--muted); }
.about-card--primary { background: var(--teal); }
.about-card--primary h3 { color: var(--white); }
.about-card--primary ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.about-card--primary li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.95); font-size: 14px; line-height: 1.6; }
.about-card--primary li i { margin-top: 4px; color: var(--white); min-width: 14px; }


.services { padding: 64px 0; background: var(--white); }
.section-title { font-size: 30px; font-weight: 900; text-align: center; margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.06); transition: all .3s; cursor: pointer; }
.service-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.12); transform: translateY(-4px); border-color: var(--teal); }
.service-img { width: 100%; height: 176px; overflow: hidden; background: var(--bg); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 16px; text-align: center; }
.service-body h4 { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.service-body p { font-size: 12px; color: var(--muted); line-height: 1.6; }


.cta-banner { padding: 40px 0; }
.cta-inner { display: flex; background: var(--teal); border-radius: var(--radius); overflow: hidden; min-height: 260px; }
.cta-left { flex: 1; padding: 40px; color: var(--white); }
.cta-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.cta-icon-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.9); }
.cta-icon-circle { width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cta-slogan { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 900; text-align: center; letter-spacing: .5px; }
.cta-right { width: 45%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: rgba(255,255,255,.1); text-align: center; color: var(--white); gap: 20px; }
.cta-right h3 { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: var(--white); }
.cta-right > p { font-size: 14px; color: rgba(255,255,255,.9); font-weight: 600; }

.clients-grid { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 20px; 
  margin-top: 32px;
}

.clients-grid .service-img {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.clients-grid .service-img img {
  object-fit: contain; 
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.clients-grid .service-card:hover .service-img img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.contact { padding: 64px 0; background: var(--bg); }
.section-subtitle { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.contact-image img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.contact-form-wrap { background: var(--white); padding: 32px 40px; }
.contact-form-wrap form { display: flex; flex-direction: column; gap: 14px; }
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Mulish', sans-serif; background: var(--white); outline: none; transition: all .3s; }
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,172,170,.15); }
.contact-form-wrap textarea { resize: vertical; }
.form-msg { font-size: 14px; font-weight: 600; color: var(--teal); display: none; }
.form-msg.visible { display: block; }


.social { padding: 64px 0; background: var(--navy); text-align: center; color: var(--white); }
.social h2 { font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.social > .container > p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 36px; }
.social-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; color: var(--white); min-width: 140px; justify-content: center; transition: all .3s; }
.social-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.social-btn i { font-size: 18px; }
.social-whatsapp { background: #25D366; }
.social-instagram { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.social-facebook { background: #1877F2; }
.social-tiktok { background: #010101; border: 1px solid rgba(255,255,255,.15); }
.social-youtube { background: #FF0000; }
.social-linkedin { background: #0A66C2; }

/* el footer */
.site-footer { background: hsl(228, 35%, 12%); color: rgba(255,255,255,.6); }
.footer-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 56px 10%; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--teal); object-fit: contain; }
.footer-brand .brand-name { font-size: 18px; color: var(--white); }
.footer-brand .brand-tagline { display: block; color: var(--teal); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; transition: background .3s; }
.footer-socials a:hover { background: var(--teal); }
.footer-col h4 { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 12px; }
.footer-col ul li i { color: var(--teal); margin-right: 8px; }
.footer-col ul a { color: rgba(255,255,255,.6); transition: color .3s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 10%; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
#back-to-top { background: none; border: none; color: rgba(255,255,255,.6); font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: color .3s; }
#back-to-top:hover { color: var(--teal); }
#back-to-top i { background: rgba(255,255,255,.1); padding: 6px; border-radius: 4px; font-size: 10px; }


.chat-bubble { position: fixed; bottom: 24px; right: 24px; display: flex; align-items: flex-end; gap: 10px; z-index: 200; }
.chat-speech { background: var(--teal); color: var(--white); padding: 8px 16px; border-radius: 20px 20px 0 20px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; box-shadow: 0 4px 15px rgba(0,0,0,.15); animation: chatPop .4s ease 1s both; }
.chat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 28px; box-shadow: 0 4px 15px rgba(0,0,0,.2); transition: transform .3s; }
.chat-bubble:hover .chat-icon { transform: scale(1.1); }

@keyframes chatPop {
  from { opacity: 0; transform: scale(.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


@media (max-width: 768px) {
  .top-bar-inner { justify-content: center; gap: 12px; }
  .top-bar-item span { font-size: 11px; }
  .logo-text { display: none; }
  .hamburger { display: flex; }
  .main-nav { display: none; position: fixed; top: 0; right: 0; height: 100vh; width: 280px; background: var(--white); flex-direction: column; align-items: flex-start; padding: 64px 32px; box-shadow: -5px 0 30px rgba(0,0,0,.15); z-index: 105; }
  .main-nav.open { display: flex; }
  .nav-close { display: block; position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }
  .nav-link { width: 100%; }
  .hero h1 { font-size: 26px; }
  .stats-inner { flex-direction: column; }
  .stat-divider { width: 80px; height: 1px; }
  .about-header { grid-template-columns: 1fr; gap: 24px; }
  .about-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; }
  .cta-right { width: 100%; }
  .cta-icons { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-image { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .chat-speech { display: none; }
}
@media (max-width: 992px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
.clients-strip-img {
    max-width: 100%;
  }
  .social-buttons { flex-direction: column; align-items: center; }
}
