/* ===== VARIABLES GLOBALES ===== */
:root {
  /* Colores principales */
  --primary: #f26522;       /* Naranja - acento principal */
  --primary-dark: #d35400;  /* Naranja oscuro */
  --secondary: #2d3e50;     /* Azul oscuro - fondo y texto */
  --light: #f8f9fa;         /* Fondo claro */
  --dark: #212529;          /* Texto oscuro */
  --gray: #6c757d;          /* Texto gris */
  --light-gray: #e9ecef;    /* Fondo gris claro */
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  /* Transiciones */
  --transition: all 0.3s ease;
  
  /* Tipografía */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* ===== UTILIDADES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 130px 0;
}

.section-title {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.section-title h2 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.top-header {
  background-color: var(--secondary);
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.top-header p {
  margin-bottom: 0;
}

.top-header i {
  margin-right: 5px;
}

.navbar {
  padding: 20px 0;
  background-color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand h1 {
  font-size: 28px;
  margin: 0;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 10px 15px;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--secondary);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
  margin-top: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(77, 76, 76, 0.5);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .section-padding {
    padding: 150px 0;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 150px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .navbar {
    padding: 15px 0;
  }
}
/* ===== CARD COMPONENT ===== */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 15px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
}

.card-meta i {
  margin-right: 5px;
  color: var(--primary);
}

/* Card para servicios */
.service-card {
  text-align: center;
  padding: 30px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(242, 101, 34, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  transform: scale(1.1);
}

.service-icon i {
  font-size: 30px;
  color: var(--primary);
}

.service-card:hover .service-icon i {
  color: white;
}

/* Card para equipo */
.team-card {
  text-align: center;
}

.team-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--primary);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.team-social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: white;
}
/* ===== SLIDER COMPONENT ===== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  min-width: 100%;
  position: relative;
}

.slider-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.slider-caption {
  position: absolute;
  bottom: 100px;
  left: 50px;
  max-width: 600px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-caption h2 {
  font-size: 48px;
  color: white;
  margin-bottom: 20px;
}

.slider-caption p {
  font-size: 18px;
  margin-bottom: 30px;
}

.slider-controls {
  position: absolute;
  bottom: 50px;
  right: 50px;
  display: flex;
  gap: 10px;
}

.slider-prev, .slider-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
  background: var(--primary);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}
/* ===== ACCORDION COMPONENT ===== */
.accordion {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border-bottom: 1px solid var(--light-gray);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--light);
}

.accordion-header.active {
  background-color: var(--primary);
  color: white;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: white;
}

.accordion-icon {
  transition: var(--transition);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background: white;
}

.accordion-content.active {
  padding: 20px;
  max-height: 1000px;
}
/* ===== FORM COMPONENT ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

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

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
}

.form-message {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.form-message.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #28a745;
  display: block;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
  display: block;
}
/* ===== GALLERY COMPONENT ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 62, 80, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

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

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-title {
  color: white;
  margin-bottom: 10px;
}

.gallery-category {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
}
