/* ===========================
   CREACOLOR - styles.css
   =========================== */

:root {
  --primary:    #0f2440;
  --accent:     #1c5fa0;
  --light-bg:   #e8eef6;
  --text-dark:  #0f0f20;
  --text-muted: #526080;
  --white:      #ffffff;
  --border:     #ccd5e3;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

h1, h2, h3 { font-family: 'Raleway', sans-serif; }

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: box-shadow 0.3s;
}

#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-link {
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0 !important;
}

.nav-link:hover { color: var(--accent) !important; }

/* ---- HERO ---- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f4f7fb 0%, #ddeaf8 100%);
  padding: 7rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  background: #ddeaf8;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.location-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--accent);
  color: #fff;
}

/* ---- STAT CARDS ---- */
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stat-num {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- SECTIONS COMMON ---- */
.section-padding { padding: 5rem 0; }

.bg-light-custom { background: var(--light-bg); }

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.section-header { margin-bottom: 3rem; }

/* ---- SERVICES ---- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(46,125,197,0.12);
  border-color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ddeaf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- GALLERY ---- */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #ddeaf8;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

/* Placeholder cuando no hay imagen */
.gallery-img[src="img/foto1.jpg"],
.gallery-img[src="img/foto2.jpg"],
.gallery-img[src="img/foto3.jpg"],
.gallery-img[src="img/foto4.jpg"],
.gallery-img[src="img/foto5.jpg"],
.gallery-img[src="img/foto6.jpg"] {
  background: #ddeaf8;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,92,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Placeholder visual si no hay imágen */
.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.85rem;
  gap: 8px;
}

.gallery-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

/* ---- NOSOTROS ---- */
.about-para {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1rem;
}

.value-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.value-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.about-visual {
  background: var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
}

.about-visual h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.timeline-text strong { color: #fff; font-weight: 500; }

/* ---- CONTACTO ---- */
.contact-info-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ddeaf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item strong {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.form-label-custom {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,125,197,0.1);
}

textarea.form-control-custom { resize: vertical; }

/* ---- FOOTER ---- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 2rem 0;
  font-size: 0.88rem;
}

footer strong { color: #fff; }

/* ---- ANIMACIONES SCROLL ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-section { padding: 6rem 0 3rem; }
  .btn-outline-custom { margin-left: 0 !important; margin-top: 0.8rem; }
}
/* ---- NAVBAR LOGO ---- */
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* ---- MAPA ---- */
.mapa-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.mapa-container iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
.footer-logo {
  height: 50px;
  width: auto;
  display: block;
  margin: 0 auto 0.8rem;
}
.service-icon .bi {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ---- FORMULARIO CONTACTO - TAMAÑO COMPACTO ---- */
.form-control-custom {
  padding: 7px 12px;
  font-size: 0.88rem;
  border-radius: 6px;
}

.form-label-custom {
  font-size: 0.80rem;
  margin-bottom: 4px;
}

#contactForm .mb-3 {
  margin-bottom: 0.7rem !important;
}

textarea.form-control-custom {
  min-height: 75px;
}

#contactForm .btn-primary-custom {
  padding: 7x 12px;
  font-size: 0.9rem;
}


