/*
Theme Name: Peritos Sociales Premium (PowerLegal Style + Dark Mode)
Description: Tema corporativo basado en el diseño PowerLegal con modo noche.
Author: Antigravity
Version: 3.0
*/

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

:root {
  /* Colors - Light Mode (Default) */
  --primary: #0A1E3F; 
  --secondary: #12284C; 
  --accent: #D0A772; 
  --accent-hover: #b8915b;
  --text-dark: #222222;
  --text-muted: #777777;
  --bg-body: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-box: #FFFFFF;
  --border-color: #EEEEEE;

  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary: #061226; /* Deeper navy for header/footer in dark mode */
  --secondary: #0A1E3F;
  --text-dark: #F3F4F6;
  --text-muted: #A0AABF;
  --bg-body: #0d1627; /* Dark background for body */
  --bg-light: #132035; /* Slightly lighter for alternate sections */
  --bg-box: #17263c; /* Cards and boxes */
  --border-color: #2a3b55;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--bg-body);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark); /* Changed to use text-dark variable so it flips in dark mode */
  font-weight: 700;
  line-height: 1.2;
}

/* Specific elements that should stay primary blue in light mode, but white in dark */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6 {
  color: var(--primary);
}

a { color: var(--accent); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #a0aabf;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-info span { margin-right: 20px; }
.top-bar-info i { color: var(--accent); margin-right: 5px; }
.top-bar-social { display: flex; align-items: center; gap: 15px; }
.top-bar-social a { color: #a0aabf; }
.top-bar-social a:hover { color: var(--accent); }

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid #a0aabf;
  color: #a0aabf;
  border-radius: 20px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Header */
.site-header {
  background: var(--bg-body);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 1000;
  transition: background 0.3s ease;
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
}
.logo-text { font-family: var(--font-heading); font-size: 32px; color: var(--text-dark); font-weight: 700; }
[data-theme="light"] .logo-text { color: var(--primary); }
.logo-text span { color: var(--accent); }

.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { color: var(--text-dark); font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
[data-theme="light"] .main-nav a { color: var(--primary); }
.main-nav a:hover { color: var(--accent); }

.btn-theme {
  background: var(--accent);
  color: #ffffff !important;
  padding: 15px 35px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn-theme:hover { background: var(--secondary); color: #ffffff !important; }

/* Hero Slider */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
  padding: 150px 0 200px 0;
  color: #ffffff;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 30, 63, 0.85); /* Always dark overlay for readability */
}
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px;}
.hero-text { max-width: 600px; }
.hero-subtitle { color: var(--accent); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-bottom: 15px; display: block;}
.hero h1 { font-size: 65px; color: #ffffff !important; margin-bottom: 25px; }

/* Overlapping Contact Form */
.hero-form-box {
  background: var(--bg-box);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-bottom: 5px solid var(--accent);
  transition: background 0.3s ease;
}
.hero-form-box h3 { font-size: 28px; margin-bottom: 10px; color: var(--text-dark); }
[data-theme="light"] .hero-form-box h3 { color: var(--primary); }
.hero-form-box p { color: var(--text-muted); margin-bottom: 20px; }
.hero-form-box input, .hero-form-box select {
  width: 100%; padding: 15px; margin-bottom: 15px;
  border: 1px solid var(--border-color); background: var(--bg-body);
  color: var(--text-dark);
  font-family: var(--font-body);
}

/* Features Overlap */
.features-wrap {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-box {
  background: var(--primary);
  color: #ffffff;
  padding: 40px;
  border-right: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: 0.3s;
}
.feature-box:hover { background: var(--accent); }
.feature-box h4 { color: #ffffff !important; font-size: 22px; margin: 15px 0; }
.feature-box p { color: #d0d5e0; }

/* About Section */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; border: 10px solid var(--bg-body); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.experience-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); color: #ffffff;
  padding: 40px; text-align: center;
}
.experience-badge h2 { font-size: 50px; color: #ffffff !important; margin: 0; }

.section-title { color: var(--accent); text-transform: uppercase; font-weight: 600; letter-spacing: 2px; display: block; margin-bottom: 10px;}
.about-content h2 { font-size: 45px; margin: 10px 0 25px 0; }
.about-content p { margin-bottom: 20px; font-size: 17px; }
.author-sign { margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; display: flex; align-items: center; gap: 20px;}

/* Services Area */
.services-section { background: var(--bg-light); padding: 100px 0; transition: background 0.3s ease; }
.text-center { text-align: center; margin-bottom: 60px; }
.text-center h2 { font-size: 45px; margin-top: 10px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-item {
  background: var(--bg-box);
  padding: 50px 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.service-item::before {
  content:''; position:absolute; bottom:0; left:0; width:100%; height:3px; background:var(--accent); transform:scaleX(0); transition:0.3s; transform-origin:left;
}
.service-item:hover::before { transform:scaleX(1); }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-icon { font-size: 40px; color: var(--accent); margin-bottom: 20px; }
.service-item h3 { font-size: 24px; margin-bottom: 15px; }
.service-item a { font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; margin-top: 15px; display: inline-block; }

/* Modern Footer Redesign */
.site-footer { 
  background: var(--primary); /* Deep Navy */
  color: #a0aabf; 
  padding: 80px 0 0 0; 
  position: relative;
}

/* Call to action overlap on footer */
.footer-cta {
  background: var(--accent);
  margin-top: -120px;
  position: relative;
  z-index: 10;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.footer-cta h3 { color: #ffffff !important; font-size: 32px; margin: 0; }
.footer-cta p { color: #ffffff; margin: 0; font-size: 18px; }
.footer-cta .btn-theme { background: var(--primary); color: #ffffff !important; }
.footer-cta .btn-theme:hover { background: #ffffff; color: var(--primary) !important; }

.footer-cols { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-cols h3 { color: #ffffff !important; font-size: 20px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.footer-cols ul { list-style: none; }
.footer-cols ul li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-cols ul a { color: #a0aabf; }
.footer-cols ul a:hover { color: var(--accent); padding-left: 5px; }

/* Special LinkedIn Box with Circular Photo */
.linkedin-badge {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid #0077b5; /* LinkedIn Blue */
  margin-top: 20px;
}
.linkedin-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.linkedin-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0077b5;
}
.linkedin-info {
  line-height: 1.2;
}
.linkedin-name {
  color: #ffffff;
  font-weight: 600;
  margin: 0 !important;
  font-size: 15px;
}
.linkedin-title {
  color: #a0aabf;
  margin: 0 !important;
  font-size: 13px;
}
.btn-linkedin {
  background: #0077b5; color: #ffffff; padding: 10px 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; border-radius: 4px; width: 100%; justify-content: center;
}
.btn-linkedin:hover { background: #006097; color: #ffffff; }

.footer-bottom { 
  background: rgba(0,0,0,0.2);
  padding: 25px 0; 
  text-align: center; 
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container, .about-grid, .service-grid { grid-template-columns: 1fr; }
  .features-wrap { grid-template-columns: 1fr; margin-top: 0; }
  .footer-cta { flex-direction: column; text-align: center; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero { padding: 100px 0; }
  .hero h1 { font-size: 45px; }
}
