/* ===== Variables ===== */
:root {
  --primary-color: #8b4513;
  --secondary-color: #d2691e;
  --accent-color: #cd853f;
  --dark-color: #2c1810;
  --light-color: #f5f5dc;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== Navbar ===== */
#mainNav {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

#mainNav.scrolled {
  padding: 0.5rem 0;
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white) !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand i {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.8), rgba(139, 69, 19, 0.7)),
    url("/images/hero.jpg") center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.7), rgba(139, 69, 19, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.hero-section .lead {
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-badges .badge {
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.hero-buttons .btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  color: var(--primary-color) !important;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* ===== Service Cards ===== */
.service-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  height: 100%;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(360deg);
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.service-card h4 {
  color: var(--dark-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  margin: 0;
}

/* ===== Material Cards ===== */
.material-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 5px solid var(--accent-color);
}

.material-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.material-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-icon i {
  font-size: 2rem;
  color: var(--white);
}

.material-card h4 {
  color: var(--dark-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.material-card ul {
  margin: 0;
}

.material-card li {
  padding: 0.5rem 0;
  color: var(--text-light);
}

.material-card li i {
  margin-right: 0.5rem;
}

/* ===== Carousel ===== */
.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  border-radius: 0 0 15px 15px;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: bold;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 50px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .carousel-img {
    height: 350px;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .carousel-img {
    height: 250px;
  }

  .service-card,
  .material-card {
    margin-bottom: 1rem;
  }
}

/* ===== Contact Section ===== */
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  height: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: var(--light-color);
  transform: translateX(10px);
}

.info-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
  min-width: 40px;
}

.info-item h5 {
  color: var(--dark-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--text-light);
  margin: 0;
}

.contact-buttons {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.contact-btn {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: 15px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
}

.whatsapp-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.instagram-btn {
  background: linear-gradient(135deg, #e1306c, #c13584, #833ab4);
  color: var(--white);
}

.instagram-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.contact-btn .btn-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-btn .btn-icon i {
  font-size: 2rem;
}

.contact-btn .btn-content {
  flex: 1;
}

.contact-btn h5 {
  margin: 0 0 0.3rem 0;
  font-weight: bold;
}

.contact-btn p {
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
}

.contact-btn .btn-action {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.contact-btn .btn-action i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.contact-btn:hover .btn-action i {
  transform: translateX(5px);
}

.contact-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--light-color);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  color: var(--white);
  /* Aumentando el padding del footer */
  padding: 3rem 0 !important;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: bold;
}

.footer-brand i {
  color: var(--accent-color);
}

/* Agregando estilos para el link del desarrollador */
.developer-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.developer-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.social-links-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .social-links-footer {
    justify-content: flex-end;
  }
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== Floating WhatsApp Button ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 50px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .carousel-img {
    height: 350px;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .carousel-img {
    height: 250px;
  }

  .service-card,
  .material-card {
    margin-bottom: 1rem;
  }
}

/* ===== Smooth Animations ===== */
[data-aos] {
  pointer-events: auto;
}

/* ===== Utility Classes ===== */
.bg-light {
  background-color: var(--light-color) !important;
}

section {
  scroll-margin-top: 80px;
  position: relative;
}

