/* ============================================
   Dunamis Psicología – Premium Design System
   Calm, Serene & Professional
   ============================================ */

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

:root {
  /* Color Palette */
  --psi-cream: #FDFBF7;
  --psi-cream-dark: #F4EFE6;
  --psi-blue-light: #E8EEF2;
  --psi-blue-medium: #8CA3B9;
  --psi-blue-dark: #1A2F4C;
  --psi-gold: #D4AF37;
  --psi-gold-hover: #C19B2E;
  --psi-text: #4A4A4A;
  --psi-text-muted: #7A7A7A;
  --psi-white: #FFFFFF;
  --psi-border: #E5E0D8;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Layout */
  --container-max: 1200px;
  --section-padding: 6rem 1.5rem;
}

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

body {
  font-family: var(--font-sans);
  color: var(--psi-text);
  background-color: var(--psi-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--psi-blue-dark);
}

/* ============================================
   Top Bar / Navigation
   ============================================ */
.psi-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(229, 224, 216, 0.5);
}

.psi-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--psi-blue-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.psi-brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 65% center;
  background-color: white;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.psi-nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--psi-blue-dark);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--psi-blue-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.psi-nav-link:hover {
  background: var(--psi-blue-dark);
  color: var(--psi-white);
}

/* ============================================
   Hero Section
   ============================================ */
.psi-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding);
  background: var(--psi-blue-light);
  overflow: hidden;
}

.psi-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.psi-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 47, 76, 0.8) 0%, rgba(140, 163, 185, 0.6) 100%);
  z-index: 1;
}

.psi-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}





.psi-hero-title {
  font-size: 4rem;
  color: var(--psi-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.psi-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.psi-btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  background: var(--psi-gold);
  color: var(--psi-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.psi-btn-primary:hover {
  background: var(--psi-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ============================================
   Nuestra Filosofía
   ============================================ */
.psi-philosophy {
  padding: var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.psi-philosophy-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(26, 47, 76, 0.1);
}

.psi-philosophy-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  pointer-events: none;
}

.psi-philosophy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psi-philosophy-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.psi-philosophy-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--psi-gold);
}

.psi-philosophy-text {
  font-size: 1.05rem;
  color: var(--psi-text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ============================================
   Áreas de Intervención
   ============================================ */
.psi-areas {
  padding: var(--section-padding);
  background: var(--psi-cream-dark);
}

.psi-areas-header {
  text-align: center;
  margin-bottom: 4rem;
}

.psi-areas-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.psi-areas-subtitle {
  font-size: 1.1rem;
  color: var(--psi-text-muted);
}

.psi-areas-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.psi-area-card {
  background: var(--psi-white);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid var(--psi-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.psi-area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--psi-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.psi-area-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 47, 76, 0.08);
}

.psi-area-card:hover::before {
  transform: scaleX(1);
}

.psi-area-icon {
  width: 64px;
  height: 64px;
  background: var(--psi-blue-light);
  color: var(--psi-blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.psi-area-card:hover .psi-area-icon {
  background: var(--psi-blue-dark);
  color: var(--psi-white);
}

.psi-area-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.psi-area-text {
  font-size: 0.95rem;
  color: var(--psi-text-muted);
}

/* ============================================
   Contact Section (Glassmorphism)
   ============================================ */
.psi-contact-wrapper {
  position: relative;
  padding: var(--section-padding);
  background: url('https://images.unsplash.com/photo-1517960413843-0aee8e2b3285?q=80&w=2000&auto=format&fit=crop') center/cover fixed;
}

.psi-contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 251, 247, 0.85); /* psi-cream */
}

.psi-contact-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 4rem;
  box-shadow: 0 30px 60px rgba(26, 47, 76, 0.1);
}

.psi-contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.psi-contact-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.psi-form {
  display: grid;
  gap: 1.5rem;
}

.psi-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.psi-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--psi-blue-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.psi-form-input,
.psi-form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(26, 47, 76, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--psi-text);
  outline: none;
  transition: all 0.3s ease;
}

.psi-form-input:focus,
.psi-form-textarea:focus {
  border-color: var(--psi-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.psi-form-submit {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.2rem;
  background: var(--psi-blue-dark);
  color: var(--psi-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.psi-form-submit:hover {
  background: #112035;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 47, 76, 0.2);
}

/* ============================================
   Footer
   ============================================ */
.psi-footer {
  background: var(--psi-blue-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.psi-footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--psi-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.psi-footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 65% center;
  background-color: white;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.psi-footer-logo:hover {
  opacity: 1;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.psi-footer-info {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.psi-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.8rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .psi-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .psi-philosophy-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.2rem;
  }

  .psi-hero-title {
    font-size: 2.5rem;
  }

  .psi-hero-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
  }
  
  .psi-contact-content {
    padding: 2.5rem 1.5rem;
  }
  
  .psi-navbar {
    padding: 1rem 1.5rem;
  }

  .psi-brand-logo {
    width: 32px;
    height: 32px;
  }

  .psi-footer-logo {
    width: 45px;
    height: 45px;
  }
}
