/* Variables globales */
:root {
  --primary: #2C3E50;
  --primary-light: #3498db;
  --secondary: #1abc9c;
  --dark: #2c3e50;
  --darker: #1a252f;
  --light: #ecf0f1;
  --lighter: #f8f9fa;
  --gray: #666;
  --gray-light: #bdc3c7;
  --success: #27ae60;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-size: 1rem;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #1a252f;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.py-100 {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--lighter);
}

/* ------------------------------
   NAVBAR MODERNO
------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  height: 45px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
}

.navbar-links ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  color: var(--dark);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-light);
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  background: none;
  border: none;
  padding: 10px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ------------------------------
   HERO SECTION MODERNO
------------------------------ */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--dark);
}

.highlight {
  background: linear-gradient(120deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 35px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 90%;
  width: 100%;
  background: linear-gradient(135deg, #3498db 0%, #1abc9c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(44, 62, 80, 0.6), transparent);
  z-index: 1;
}

.stats-cards {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 5px;
}

/* ------------------------------
   SECCIÓN DE SERVICIOS
------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 35px;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

.service-link i {
  margin-left: 8px;
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ------------------------------
   SECCIÓN DE EQUIPO
------------------------------ */
.team-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.team-image {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.profile-circle {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.profile-circle img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-profiles {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.social-profiles a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-profiles a:hover {
  transform: translateY(-3px);
  background: var(--primary-light);
}

.team-title {
  font-size: 1.5rem;
  color: var(--primary-light);
  margin-bottom: 25px;
  font-weight: 600;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
  padding: 20px 15px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--gray);
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.team-bio p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ------------------------------
   SECCIÓN DE CONTACTO
------------------------------ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon i {
  font-size: 1.8rem;
  color: white;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.contact-card p {
  color: var(--gray);
  margin-bottom: 8px;
}

.contact-card p a {
  color: var(--dark);
  font-weight: 600;
}

.contact-card p a:hover {
  color: var(--primary-light);
}

.social-links {
  grid-column: 1 / -1;
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.social-links h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--light);
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.error-message {
  position: absolute;
  bottom: -20px;
  left: 0;
  color: #e74c3c;
  font-size: 0.85rem;
  display: none;
}

.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success);
  display: block;
}

.form-message.error {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  display: block;
}

/* ------------------------------
   FOOTER MODERNO
------------------------------ */
.footer {
  background: var(--darker);
  color: white;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
  bottom: 0;
  left: 0;
}

.footer-col p {
  color: var(--gray-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--gray-light);
}

.footer-contact li i {
  min-width: 20px;
}

.footer-contact li a {
  color: var(--gray-light);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.footer-legal a {
  color: var(--gray-light);
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--gray-light);
}

/* ------------------------------
   WHATSAPP FLOAT
------------------------------ */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #fff;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ------------------------------
   BOTÓN SCROLL TOP
------------------------------ */
.scroll-top {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--primary-light);
}

/* ------------------------------
   SECTION HEADER
------------------------------ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary));
  margin: 25px auto;
}

/* ------------------------------
   MEDIA QUERIES
------------------------------ */

/* Tablets y menores */
@media (max-width: 1024px) {
  .hero-container,
  .team-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
   
  .team-image {
    justify-self: center;
    max-width: 350px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .navbar {
    padding: 12px 0;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .navbar-links.active {
    right: 0;
  }
  
  .navbar-links ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 20px;
  }
  
  .navbar-links ul li {
    width: 100%;
    border-bottom: 1px solid var(--light);
  }
  
  .nav-link {
    display: block;
    padding: 15px 0;
    width: 100%;
  }
  
  .nav-cta {
    display: block;
    margin: 20px 20px;
    text-align: center;
  }
  
  .hero {
    padding-top: 80px;
    min-height: auto;
  }
  
  .hero-container {
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .hero-image {
    height: 240px;
    width: 100%; 
  }
    
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .py-100 {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-card {
    padding: 30px 25px;
  }
  
  .team-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .team-cta {
    text-align: center;
  }
  
  .team-cta .btn {
    width: 100%;
  }
  
  .contact-info {
    gap: 20px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    padding: 25px 0;
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    font-size: 26px;
  }
  
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 20px;
    font-size: 1rem;
  }
}

/* Mobile extra small */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .service-card {
    padding: 25px 20px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
  }
  
  .service-icon i {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 25px 15px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 16px;
    font-size: 16px; /* Previene zoom en iOS */
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Landscape móvil */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }
  
  
  .hero-image {
    height: 300px;
  }
}

/* Estilos para la lista de servicios */
.service-card ul {
  list-style: none; /* Elimina las viñetas por defecto del navegador */
  margin-bottom: 25px;
  padding-left: 0;
}

.service-card ul li {
  position: relative;
  padding-left: 20px; /* Espacio para el pseudo-elemento */
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--gray);
}

.service-card ul li::before {
  content: ''; /* El contenido del pseudo-elemento, en este caso vacío */
  position: absolute;
  top: 8px; /* Ajusta la posición vertical del "punto" */
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary-light); /* Color del "punto" */
  border-radius: 50%;
}