/* ===== DIVEX - DIVERSIFICACIONES EXCLUSIVAS ===== */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', Arial, sans-serif; font-size: 15px; color: #555; background: #fff; line-height: 1.7; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Raleway', 'Open Sans', Arial, sans-serif; color: #222; font-weight: 700; line-height: 1.3; }

/* Container */
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.text-center { text-align: center; }

/* ===== VARIABLES ===== */
:root {
  --yellow: #f4c800;
  --dark: #32373c;
  --dark2: #222;
  --light-bg: #f8f8f8;
  --border: #e5e5e5;
  --white: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(50,55,60,0.97);
  padding: 0;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar.scrolled { background: rgba(34,34,34,0.99); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-logo img { height: 45px; width: auto; }
.navbar-logo .text-logo { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; }
.navbar-logo .text-logo span { color: var(--yellow); }
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-menu a {
  color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; border-radius: 3px;
  transition: all 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--yellow); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; height: 100vh; min-height: 550px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.slide-content {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding-top: 70px;
}
.slide-content .container { width: 100%; }
.slide-text { max-width: 650px; }
.slide-text h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; margin-bottom: 20px; line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide-text h1 span { color: var(--yellow); }
.slide-text p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 35px; }
.btn { display: inline-block; padding: 13px 35px; border-radius: 3px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; cursor: pointer; border: 2px solid transparent; }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: #e0b400; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(244,200,0,0.4); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; margin-left: 15px; }
.btn-outline:hover { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #222; transform: translateY(-2px); }

/* Slider controls */
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.dot.active { background: var(--yellow); border-color: var(--yellow); }
.slider-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 10; pointer-events: none; }
.slider-arrow { pointer-events: all; background: rgba(244,200,0,0.8); color: var(--dark); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.slider-arrow:hover { background: var(--yellow); transform: scale(1.1); }

/* ===== INFO BOXES ===== */
.info-section { padding: 70px 0; background: #fff; }
.info-box {
  text-align: center; padding: 35px 25px; border-radius: 5px;
  border: 1px solid var(--border); margin-bottom: 30px;
  transition: all 0.3s; background: #fff;
}
.info-box:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-color: var(--yellow); }
.info-icon { margin-bottom: 20px; }
.info-icon i { font-size: 2.5rem; color: var(--yellow); background: rgba(244,200,0,0.1); width: 75px; height: 75px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s; }
.info-box:hover .info-icon i { background: var(--yellow); color: var(--dark); }
.info-content h5 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.info-content p { font-size: 0.9rem; color: #777; line-height: 1.7; }

/* ===== SECTION TITLES ===== */
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--dark); margin-bottom: 15px; }
.section-title h2 span { color: var(--yellow); }
.section-title p { color: #777; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-title .title-line { width: 60px; height: 3px; background: var(--yellow); margin: 15px auto; }

/* ===== SERVICES SECTION ===== */
.services-section { padding: 80px 0; background: var(--light-bg); }
.service-card {
  background: #fff; border-radius: 5px; padding: 35px 25px;
  text-align: center; margin-bottom: 30px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s; box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.service-card:hover { transform: translateY(-8px); border-bottom-color: var(--yellow); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.service-icon { font-size: 2.5rem; color: var(--yellow); margin-bottom: 20px; }
.service-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; }
.service-card p { font-size: 0.88rem; color: #777; }
.service-card a.read-more { display: inline-block; margin-top: 15px; color: var(--yellow); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.service-card a.read-more:hover { color: var(--dark); }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 80px 0; background: #fff; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 5px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--yellow); color: var(--dark);
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; text-align: center; box-shadow: 0 5px 20px rgba(244,200,0,0.4);
}
.about-badge .years { font-size: 2.2rem; line-height: 1; }
.about-badge .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }
.about-content { padding-left: 40px; }
.about-content .subtitle { color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 10px; }
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); margin-bottom: 20px; }
.about-content p { color: #666; margin-bottom: 15px; }
.about-features { margin: 25px 0; }
.about-feature { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.about-feature i { color: var(--yellow); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.about-feature span { color: #555; font-size: 0.95rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: url('../images/cta-bg.jpg') center/cover no-repeat;
  position: relative;
}
.cta-section::before { content: ''; position: absolute; inset: 0; background: rgba(50,55,60,0.88); }
.cta-section .container { position: relative; z-index: 1; }
.cta-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-text h2 span { color: var(--yellow); }
.cta-text p { color: rgba(255,255,255,0.8); }

/* ===== CLIENTS SECTION ===== */
.clients-section { padding: 70px 0; background: var(--light-bg); }
.clients-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; margin-top: 40px; }
.client-logo { opacity: 0.6; transition: all 0.3s; filter: grayscale(100%); }
.client-logo:hover { opacity: 1; filter: grayscale(0%); }
.client-logo img { max-height: 60px; width: auto; }

/* ===== CONTACT SECTION ===== */
.contact-section { padding: 80px 0; background: #fff; }
.contact-info-box { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 35px; }
.contact-icon { width: 55px; height: 55px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: var(--dark); font-size: 1.2rem; }
.contact-info-text h5 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; text-transform: uppercase; }
.contact-info-text p, .contact-info-text a { color: #666; font-size: 0.9rem; }
.contact-info-text a:hover { color: var(--yellow); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 18px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 0.9rem; color: #555;
  background: #fafafa; transition: all 0.3s; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--yellow);
  background: #fff; box-shadow: 0 0 0 3px rgba(244,200,0,0.1);
}
.contact-form textarea { height: 140px; resize: vertical; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: #fff; font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; display: block; }
.footer-brand .logo-text span { color: var(--yellow); }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; transition: all 0.3s; }
.footer-social a:hover { background: var(--yellow); color: var(--dark); }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--yellow); display: inline-block; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: all 0.3s; }
.footer-links a:hover { color: var(--yellow); padding-left: 5px; }
.footer-links a::before { content: '›'; margin-right: 6px; color: var(--yellow); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.footer-contact-item i { color: var(--yellow); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: var(--yellow); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 130px 0 60px;
  background: var(--dark);
  position: relative; overflow: hidden;
}
.page-header::before { content: ''; position: absolute; inset: 0; background: url('../images/cta-bg.jpg') center/cover; opacity: 0.2; }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.breadcrumb a { color: var(--yellow); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ===== NOSOTROS PAGE ===== */
.nosotros-section { padding: 80px 0; }
.nosotros-section .row { align-items: center; gap: 0; }
.nosotros-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); margin-bottom: 20px; }
.nosotros-text h2 span { color: var(--yellow); }
.nosotros-text p { color: #666; margin-bottom: 15px; line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.stat-box { text-align: center; padding: 25px 15px; background: var(--light-bg); border-radius: 5px; border-top: 3px solid var(--yellow); }
.stat-box .number { font-size: 2.5rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-box .label { font-size: 0.8rem; color: #777; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.timeline { margin: 40px 0; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 30px; }
.timeline-dot { width: 14px; height: 14px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; margin-top: 5px; position: relative; }
.timeline-dot::after { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 2px; height: calc(100% + 16px); background: var(--border); }
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-content h5 { font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.timeline-content p { color: #777; font-size: 0.9rem; }

/* ===== SERVICES PAGE ===== */
.services-page { padding: 80px 0; background: #fff; }
.service-detail-card {
  background: #fff; border-radius: 5px; margin-bottom: 30px;
  box-shadow: 0 3px 20px rgba(0,0,0,0.08); overflow: hidden;
  transition: all 0.3s; border: 1px solid var(--border);
}
.service-detail-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); border-color: var(--yellow); }
.service-detail-icon { background: var(--yellow); padding: 30px; text-align: center; }
.service-detail-icon i { font-size: 2.5rem; color: var(--dark); }
.service-detail-body { padding: 25px; }
.service-detail-body h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; text-transform: uppercase; }
.service-detail-body p { font-size: 0.88rem; color: #777; }

/* ===== CONTACT PAGE ===== */
.contact-page { padding: 80px 0; }
.map-section { height: 400px; background: var(--light-bg); border-radius: 5px; overflow: hidden; margin-top: 50px; }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: all 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: all 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: var(--yellow); color: var(--dark); border: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); transition: all 0.3s; z-index: 999; box-shadow: 0 3px 15px rgba(244,200,0,0.4); }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--dark); color: var(--yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .col-lg-3 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
  .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { padding-left: 0; margin-top: 40px; }
  .about-badge { right: 10px; }
}
@media (max-width: 767px) {
  .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 20px; gap: 5px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .col-lg-3, .col-lg-4, .col-md-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .cta-content { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slider-arrows { display: none; }
  .about-badge { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .slide-text h1 { font-size: 1.8rem; }
}
