/* ========================================
   N&Y CONTRACTORS - ESTILOS PRINCIPALES
   Colores: Naranja #FF5722, Verde #2E7D32
   ======================================== */

/* === VARIABLES CSS === */
:root {
  --primary-orange: #FF5722;
  --primary-green: #2E7D32;
  --dark-green: #1B5E20;
  --light-orange: #FF6F3C;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --border-gray: #E0E0E0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

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

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

ul {
  list-style: none;
}

/* === HEADER === */
.header {
  background-color: transparent !important;
  box-shadow: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo img {
  height: 65px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header.scrolled .logo img {
  filter: none;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  position: relative;
  padding: 5px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header.scrolled .nav-menu a {
  color: var(--dark-gray);
  text-shadow: none;
}

.header.scrolled .nav-menu a:hover {
  color: var(--primary-orange);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
  transition: var(--transition);
}

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

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

.btn-contact {
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white) !important;
  padding: 8px 30px !important;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
  display: inline-block;
  line-height: 1.5;
  white-space: nowrap;
  text-shadow: none !important;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
  color: var(--white) !important;
}

.btn-contact::after {
  display: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header.scrolled .mobile-toggle span {
  background-color: var(--primary-orange);
  box-shadow: none;
}

/* === HERO VIDEO === */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 20, 8, 0.349), rgba(8, 34, 10, 0.562));
  z-index: 1;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  padding: 40px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--light-orange);
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.664);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.664);
}

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

.btn {
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white);
  box-shadow: 0 5px 20px rgba(255, 87, 34, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.486);
}

.btn-secondary {
  background: var(--primary-green);
  color: var(--white);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary:hover {  
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.486);
}

/* === SECCIONES GENERALES === */
.section {
  padding: 100px 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--primary-orange);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--dark-gray);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
  border-radius: 2px;
}

.section-description {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === VALORES/PROPUESTA === */
.values {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 45px 35px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(31, 7, 0, 0.26);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.534);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 87, 34, 0.05) 0%, 
    rgba(46, 125, 50, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.value-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 87, 34, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.281);
  border-top: 4px solid var(--primary-orange);
}

.value-card:nth-child(even):hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(70, 255, 54, 0.308);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.281);
  border-top: 4px solid var(--primary-green);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--primary-orange);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.value-icon i {
  display: block;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 4px 12px rgba(255, 87, 34, 0.3));
}

.value-card:nth-child(even) .value-icon {
  color: var(--primary-green);
}

.value-card:nth-child(even):hover .value-icon {
  filter: drop-shadow(0 4px 12px rgba(46, 125, 50, 0.3));
}

.value-card h3 {
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.value-card:hover h3 {
  color: var(--primary-orange);
}

.value-card:nth-child(even):hover h3 {
  color: var(--primary-green);
}

.value-card p {
  color: var(--medium-gray);
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.value-card:hover p {
  opacity: 1;
}

/* === SERVICIOS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.514);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}

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

.service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.541);
}

.service-image {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.4));
  transition: all 0.3s ease;
  z-index: 1;
}

.service-card:hover .service-image::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

/* Overlay Hover - Solo en imagen */
.service-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(49, 17, 8, 0.356), rgba(13, 37, 15, 0.521));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2;
}

.service-card:hover .service-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.btn-consultar {
  background: var(--white);
  color: var(--primary-orange);
  padding: 8px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  transform: scale(0.8);
  opacity: 0;
}

.service-card:hover .btn-consultar {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.1s;
}

.btn-consultar:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: var(--primary-orange);
  color: var(--white);
}

.btn-consultar i {
  font-size: 1.2rem;
}

.service-content {
  padding: 30px;
  position: relative;
}

.service-card h3 {
  font-size: 1.6rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary-orange);
}

.service-card p {
  color: var(--medium-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 20px;
}

.service-features li {
  padding: 8px 0;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '\f26b';
  font-family: 'bootstrap-icons';
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1rem;
}

.btn-service {
  display: inline-block;
  color: var(--primary-orange);
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
}

.btn-service::after {
  content: '→';
  margin-left: 10px;
  transition: var(--transition);
}

.btn-service:hover {
  color: var(--primary-green);
}

.btn-service:hover::after {
  margin-left: 15px;
}

/* === PROCESO === */
.process {
  background: linear-gradient(rgba(15, 41, 17, 0.377), rgba(255, 86, 34, 0.356)),
              url('../img/proceso-bg.jpg') center/cover fixed no-repeat;
  position: relative;
  color: var(--white);
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 86, 34, 0.164), rgba(46, 125, 50, 0.233));
  pointer-events: none;
}

.process .container {
  position: relative;
  z-index: 1;
}

.process .section-subtitle {
  color: var(--light-orange);
  font-weight: 700;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.767);
}

.process .section-title {
  color: var(--white);
}

.process .section-title::after {
  background: linear-gradient(90deg, var(--light-orange), var(--white));
}

.process .section-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.767);
}
.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-orange), var(--primary-green));
}

.process-step {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  align-items: center;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 5px 20px rgba(255, 87, 34, 0.4);
  position: relative;
  z-index: 2;
}

.process-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.process-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 1);
}

.process-content h3 {
  font-size: 1.8rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.process-content p {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* === PORTAFOLIO/GALERÍA === */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 30px;
  background-color: transparent;
  color: var(--dark-gray);
  border: 2px solid var(--border-gray);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white);
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.portfolio-image {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.portfolio-category {
  color: var(--light-orange);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === TESTIMONIOS === */
.testimonials {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  color: var(--dark-gray);
  overflow: hidden;
}

.testimonials .section-subtitle {
  color: var(--primary-orange);
}

.testimonials .section-title {
  color: var(--dark-gray);
}

.testimonials .section-title::after {
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
}

.testimonials .section-description {
  color: var(--medium-gray);
}

.testimonials-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: center;
}

/* Estadísticas */
.stats-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.384);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 87, 34, 0.1);
}

.stat-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.15);
  border-color: var(--primary-orange);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(255, 111, 60, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-orange);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white);
  transform: scale(1.05);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 5px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number .counter {
  display: inline-block;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--medium-gray);
  margin: 0;
  font-weight: 500;
}

/* Testimonios Slider */
.testimonials-slider-section {
  background: var(--white);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.438);
  position: relative;
}

.testimonials-slider-wrapper {
  position: relative;
  min-height: 300px;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-orange);
  opacity: 0.2;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--light-gray);
}

.author-info h4 {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin-bottom: 5px;
  font-weight: 600;
}

.author-info p {
  color: var(--primary-orange);
  font-size: 0.9rem;
  margin: 0 0 10px 0;
}

.author-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-orange);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
  flex-shrink: 0;
}

.testimonial-rating {
  color: #ffc107;
  font-size: 1rem;
}

.testimonial-rating i {
  margin-right: 2px;
}

/* Controles del Slider */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-btn {
  width: 45px;
  height: 45px;
  border: 2px solid var(--primary-orange);
  background: transparent;
  color: var(--primary-orange);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--primary-orange);
  color: var(--white);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-orange);
  width: 30px;
  border-radius: 6px;
}

/* Responsive Testimonials */
@media (max-width: 968px) {
  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .testimonials-slider-section {
    padding: 35px;
  }
  
}

@media (max-width: 600px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 25px;
  }
  
  .testimonials-slider-section {
    padding: 25px;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
}

/* === FORMULARIO DE CONTACTO === */
.contact-section {
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.3);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item-text p {
  margin: 0;
  opacity: 0.9;
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-gray);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
  background-color: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(255, 87, 34, 0.4);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* === FOOTER === */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 40px;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--light-orange);
}

.footer-section p {
  line-height: 1.8;
  opacity: 0.8;
}

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

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--light-orange);
  padding-left: 5px;
}

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

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-orange);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.63);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
  }
  
  .nav-menu a {
    color: var(--dark-gray) !important;
    text-shadow: none !important;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
  } 

  .hero h1 {
    font-size: 2.5rem;
  } 

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Proceso Background */
  .process {
    background: linear-gradient(rgba(0, 0, 0, 0.397), rgba(0, 0, 0, 0.37)),
                url('../img/proceso-bg.jpg') center/cover scroll no-repeat !important;
    background-attachment: scroll !important;
  }

  .process-timeline::before {
    left: 40px;
  }

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: row;
    padding-left: 100px;
  }

  .process-number {
    position: absolute;
    left: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-video {
    object-position: center center;
    min-height: 100%;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  } 

  .section {
    padding: 60px 20px;
  }

  .values-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .value-card {
    padding: 35px 25px;
  }

  .contact-form,
  .contact-info {
    padding: 30px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.63);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
  }
  
  .nav-menu a {
    color: var(--dark-gray) !important;
    text-shadow: none !important;
  }

  /* Proceso Background en móviles pequeños */
  .process {
    background: linear-gradient(rgba(0, 0, 0, 0.281), rgba(0, 0, 0, 0.308)),
                url('../img/proceso-bg.jpg') center top/cover scroll no-repeat !important;
    background-attachment: scroll !important;
  }
}

/* === UTILIDADES === */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-40 {
  margin-top: 40px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}