/* ===================================================
   Alexandra Vidal – Psicóloga Clínica
   style.css
   =================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:      #26ABA3;
  --primary-dark: #14736d;
  --white:        #ffffff;
  --bg:           #f2f3f5;
  --text:         #333333;
  --text-light:   #5a5a5a;
  --border:       #e0e0e0;
  --radius:       8px;
  --max-width:    1200px;
  --header-h:     130px; /* topbar (40) + navbar (90) */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

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

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

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; }
h1, h2, h3, h4 { font-weight: 700; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.section-title {
  margin-bottom: 3rem;
}
.center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-light {
  background: var(--bg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ===== HEADER ===== */
#page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.25s;
}
#page-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* Top bar */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar i {
  margin-right: 0.4em;
}
.topbar-socials {
  display: flex;
  gap: 1rem;
}
.topbar-socials a {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.topbar-socials a:hover {
  opacity: 1;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img {
  height: 60px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--primary-dark) url('wp-content/uploads/2025/02/Rectangle.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(20, 115, 109, 0.92) 0%,
    rgba(20, 115, 109, 0.75) 60%,
    rgba(20, 115, 109, 0.40) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.hero-text {
  flex: 1;
  color: var(--white);
  max-width: 600px;
}
.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}
.hero-text h1 {
  margin-bottom: 0.4rem;
}
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.2rem;
  max-width: 540px;
}
.hero-photo {
  flex-shrink: 0;
}
.hero-photo img {
  max-width: 340px;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.35));
}

/* ===== ABOUT ===== */
.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 4.5rem;
}
.about-photo {
  flex-shrink: 0;
  width: 380px;
}
.about-photo img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}
.about-text h2 {
  margin-bottom: 1.4rem;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.about-text strong {
  color: var(--text);
}
.approach-list,
.check-list {
  margin: 0.5rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.approach-list li {
  color: var(--text-light);
  padding-left: 1.4em;
  position: relative;
}
.approach-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.check-list li {
  color: var(--text-light);
  padding-left: 1.6em;
  position: relative;
}
.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s, box-shadow 0.22s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.service-icon {
  width: 54px;
  height: 54px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.service-card h3 {
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.modality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.modality-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.modality-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.modality-card h3 i {
  margin-right: 0.5em;
}
.modality-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.modality-card .address {
  margin-top: 0.5rem;
  color: var(--text);
}
.modality-card ul {
  margin: 0.4rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.modality-card li {
  color: var(--text-light);
  font-size: 0.95rem;
}
.modality-card li i {
  color: var(--primary);
  margin-right: 0.5em;
  width: 1em;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-banner h2 {
  margin-bottom: 0.6rem;
}
.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  opacity: 0.9;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: var(--primary);
}
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary {
  color: var(--primary-dark);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 171, 163, 0.15);
}
.form-group textarea {
  resize: vertical;
}
.contact-form .btn {
  align-self: center;
  min-width: 200px;
}

/* ===== FOOTER ===== */
#page-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  padding: 4rem 1.5rem 3rem;
}
.footer-col img {
  margin-bottom: 1rem;
  max-width: 180px;
  opacity: 0.92;
}
.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer-col p i {
  margin-right: 0.5em;
  opacity: 0.75;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col ul a {
  font-size: 0.9rem;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.footer-col ul a:hover {
  opacity: 1;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.28);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  z-index: 200;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2.1rem;
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(38, 171, 163, 0.4);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 960px) {
  .hero-photo { display: none; }
  .hero-text { max-width: 100%; }
  .about-inner { flex-direction: column; }
  .about-photo { width: 100%; max-width: 400px; }
  .modality-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 80px; }

  .topbar { display: none; }

  .navbar {
    padding: 0.75rem 0;
  }
  .navbar-logo img { height: 48px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    align-items: flex-start;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.8rem 1.5rem;
  }
  .nav-links a::after { display: none; }
  .navbar-inner { position: relative; }

  .hero { min-height: 90vh; }
  .hero-content { padding-top: 2rem; padding-bottom: 4rem; }

  .section { padding: 3.5rem 0; }
  .section-title { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 3.5rem 1.5rem; }
}
