/* Base Styles & Variables */
:root {
  /* Colors from Logo */
  --primary: #005b85;
  --primary-dark: #003f5c;
  --primary-light: #e6ead3;
  --secondary: #97c438;
  --secondary-dark: #7da52d;

  /* Text and Backgrounds */
  --text: #334155;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --white: #ffffff;

  /* UI Elements */
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 25px -5px rgba(0, 91, 133, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-card: var(--white);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --text: #f8fafc;
  --text-light: #cbd5e1;
  --bg: #0f172a;
  --bg-light: #1e293b;
  --bg-dark: #020617;
  /* Darker for footer/testimonials */

  --glass-bg: rgba(15, 23, 42, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-card: #1e293b;
  --border: #334155;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

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

.bg-primary-dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

p.lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: var(--primary-light);
  z-index: -1;
  border-radius: 4px;
}

[data-theme="dark"] .highlight::after {
  background-color: rgba(0, 91, 133, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  gap: 10px;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(151, 196, 56, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

[data-theme="dark"] .btn-outline {
  color: var(--secondary);
  border-color: var(--secondary);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: var(--secondary);
  color: #000;
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .badge {
  background-color: rgba(0, 91, 133, 0.3);
  color: var(--secondary);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

[data-theme="dark"] .section-badge {
  background-color: rgba(0, 91, 133, 0.3);
  color: var(--secondary);
}

.badge-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 75px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
}

.theme-toggle:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

[data-theme="dark"] .theme-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/hero_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.2) 100%);
  z-index: -1;
  transition: var(--transition);
}

[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 5;
}

.hero-text {
  max-width: 650px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-shape {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-shape svg {
  display: block;
  width: 100%;
  height: auto;
}

.shape-fill {
  fill: var(--bg);
  transition: var(--transition);
}

/* Features */
.features {
  padding-top: 40px;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: -80px;
}

.feature-card {
  background: var(--glass-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

[data-theme="dark"] .feature-icon {
  background-color: rgba(0, 91, 133, 0.2);
  color: var(--secondary);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: var(--white);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
}

.img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
  background-image: url('activos/oficina.jpg');
  background-size: cover;
  background-position: center;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--glass-card);
  padding: 25px 35px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
  border-left: 5px solid var(--secondary);
}

.experience-badge .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.check-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  color: var(--text);
}

.check-list li i {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Services */
.section-header {
  max-width: 600px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--glass-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 220px;
  background-color: var(--primary-light);
  background-size: cover;
  background-position: center;
}

.s-img-1 {
  background-image: url('activos/logo_pared.jpg');
}

.s-img-2 {
  background-image: url('activos/frontis.jpg');
}

.s-img-3 {
  background-image: url('activos/oficina.jpg');
}

.service-content {
  padding: 30px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: 15px;
  color: var(--secondary-dark);
}

/* Service Row Layout */
.service-row-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: none;
  box-shadow: none;
  background: transparent;
  gap: 40px;
}

.service-row-img {
  height: 350px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.service-row-content {
  padding: 0 40px;
}

.service-row-title {
  font-size: 2rem;
  color: var(--primary);
}

.service-row-desc {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.service-row-card.rtl {
  direction: rtl;
}

.service-row-card.rtl .service-row-content {
  direction: ltr;
}

@media (max-width: 900px) {
  .service-row-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-row-card.rtl {
    direction: ltr;
  }
  
  .service-row-content {
    padding: 0 10px;
  }
}


/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stars {
  color: #fbbf24;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.author-info h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.author-info span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.source-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.source-icon.google {
  background: #ea4335;
}

.source-icon.yelp {
  background: #d32323;
}

/* CTA Section */
.cta-card {
  background: var(--glass-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.cta-content {
  padding: 60px;
  background: var(--gradient);
  color: var(--white);
}

.cta-content h2,
.cta-content p {
  color: var(--white) !important;
}

.contact-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cta-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.whatsapp-box {
  color: #25D366;
}

.phone-box {
  color: var(--primary);
}

.link-text {
  display: flex;
  flex-direction: column;
}

.link-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.link-text strong {
  font-size: 1.2rem;
}

.cta-form {
  padding: 60px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: var(--glass-card);
}

/* Footer */
.footer {
  background: var(--bg-light);
  padding-top: 80px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 100px;
  width: auto;
}

[data-theme="dark"] .footer-logo img {
  filter: brightness(0) invert(1);
}

.about-col p {
  color: var(--text-light);
  margin-bottom: 25px;
  max-width: 350px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--glass-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.pl-md {
  padding-left: 2rem;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info li {
  display: flex;
  gap: 15px;
  color: var(--text-light);
  line-height: 1.4;
}

.contact-info i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--text-light);
}

.legal-links a:hover {
  color: var(--primary);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-badge {
    right: 20px;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .pl-md {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .d-none-mobile {
    display: none !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-card);
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 20px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-bg::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0.85) 100%);
  }

  [data-theme="dark"] .hero-bg::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.85) 100%);
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}