/* DuyoSoft - estilos sobre Bootstrap 4
   Basado en la plantilla Agency de Start Bootstrap (https://startbootstrap.com)
   Copyright (c) 2013-2018 Blackrock Digital LLC - Licencia MIT */

:root {
  --primary: #f15a23;       /* naranja del logo */
  --primary-dark: #d94a17;
  --navy: #204764;          /* azul del logo */
  --dark: #16293a;
  --light: #f4f6f9;
  --text: #2b2f33;
  --muted: #6c757d;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(22, 41, 58, 0.08);
  --shadow-hover: 0 14px 34px rgba(22, 41, 58, 0.16);
  --font-heading: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Droid Serif', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  overflow-x: hidden;
  color: var(--text);
  font-family: 'Roboto Slab', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

p {
  line-height: 1.75;
}

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

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

h1, h2, h3, h4, h5, h6, .btn {
  font-family: var(--font-heading);
  font-weight: 700;
}

::selection {
  color: #fff;
  background: var(--primary);
}

.bg-light {
  background-color: var(--light) !important;
}

/* Secciones */
section {
  padding: 90px 0;
}

section h2.section-heading {
  position: relative;
  font-size: 36px;
  margin: 0 0 15px;
  color: var(--navy);
}

section h2.section-heading:after {
  display: block;
  width: 60px;
  height: 4px;
  margin: 15px auto 0;
  content: '';
  border-radius: 2px;
  background: var(--primary);
}

section h3.section-subheading {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 55px;
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  section {
    padding: 110px 0;
  }
  section h2.section-heading {
    font-size: 40px;
  }
}

/* Botones */
.btn-xl {
  font-size: 16px;
  letter-spacing: 1px;
  padding: 18px 40px;
  border-radius: 50px;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #fff;
}

.btn-primary:active, .btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(241, 90, 35, 0.4) !important;
}

.btn-primary:disabled {
  opacity: 0.6;
}

/* Navegación */
#mainNav {
  background-color: var(--dark);
}

#mainNav .navbar-brand img {
  width: 60px;
  height: 60px;
  padding: 4px;
  background: #fff;
  border-radius: 10px;
  transition: width 0.3s, height 0.3s;
}

#mainNav .navbar-toggler {
  font-size: 12px;
  padding: 12px 14px;
  text-transform: uppercase;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background-color: var(--primary);
  font-family: var(--font-heading);
}

#mainNav .nav-link {
  font-size: 90%;
  padding: 0.75em 0;
  letter-spacing: 1px;
  color: #fff;
  font-family: var(--font-heading);
}

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

@media (min-width: 992px) {
  #mainNav {
    padding: 25px 0;
    transition: padding 0.3s, background-color 0.3s, box-shadow 0.3s;
    background-color: transparent;
  }
  #mainNav .navbar-brand img {
    width: 120px;
    height: 120px;
    padding: 6px;
  }
  #mainNav .nav-link {
    padding: 1.1em 1em !important;
  }
  #mainNav.navbar-shrink {
    padding: 0;
    background-color: var(--dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }
  #mainNav.navbar-shrink .navbar-brand img {
    width: 60px;
    height: 60px;
    padding: 4px;
  }
}

/* Cabecera */
header.masthead {
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(22, 41, 58, 0.55), rgba(22, 41, 58, 0.75)),
    url("../img/header-bg.jpg") center / cover no-repeat;
}

header.masthead .intro-text {
  padding: 160px 0 110px;
}

header.masthead .intro-lead-in {
  font-size: 22px;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

header.masthead .intro-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 15px;
  font-family: var(--font-heading);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

header.masthead .btn {
  margin-top: 30px;
}

/* Aviso promocional en la cabecera */
header.masthead {
  position: relative;
}

.promo-splash {
  position: absolute;
  z-index: 2;
  top: 92px;
  right: 0;
  width: 130px;
  font-size: 17px;
  color: #fff;
  animation: splash-in 0.7s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             splash-float 4s 1.3s ease-in-out infinite;
}

.promo-splash:hover {
  color: #fff;
  text-decoration: none;
}

.promo-splash-inner {
  position: relative;
  display: block;
  transition: transform 0.25s;
}

.promo-splash:hover .promo-splash-inner {
  transform: scale(1.08);
}

.promo-splash svg {
  display: block;
  width: 100%;
  fill: var(--primary);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.promo-splash-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-heading);
}

.promo-splash-text small {
  margin-bottom: 0.15em;
  font-size: 0.5em;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-serif);
}

@keyframes splash-in {
  from { opacity: 0; transform: scale(0) rotate(-40deg); }
  to { opacity: 1; transform: scale(1) rotate(-10deg); }
}

@keyframes splash-float {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@media (min-width: 768px) {
  .promo-splash {
    top: 100px;
    right: 3%;
    width: 200px;
    font-size: 26px;
  }
}

@media (min-width: 1200px) {
  .promo-splash {
    top: 150px;
    right: 5%;
    width: 270px;
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-splash {
    animation: none;
    transform: rotate(-10deg);
  }
}

@media (min-width: 768px) {
  header.masthead .intro-text {
    padding: 260px 0 200px;
  }
  header.masthead .intro-lead-in {
    font-size: 36px;
  }
  header.masthead .intro-heading {
    font-size: 64px;
  }
}

/* Productos */
.product {
  margin-bottom: 50px;
}

.product-info {
  margin-bottom: 30px;
}

.product-name {
  margin: 0 0 4px;
  font-size: 56px;
  line-height: 1;
  color: var(--navy);
}

.product-tagline {
  font-size: 20px;
  font-style: italic;
  color: var(--primary);
  font-family: var(--font-serif);
}

.product-video {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow-hover);
}

.product-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.product-modules > div {
  margin-bottom: 30px;
}

.module-card {
  height: 100%;
  padding: 25px 20px 10px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--light);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.module-card .fa {
  font-size: 32px;
  color: var(--primary);
}

.module-card h4 {
  margin: 14px 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.module-card p {
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .product-info {
    margin-bottom: 0;
  }
}

/* Soporte */
.support-card {
  display: block;
  height: 100%;
  padding: 40px 30px 25px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.support-card:hover {
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  font-size: 42px;
  color: #fff;
  border-radius: 50%;
  background: var(--primary);
  transition: background 0.25s;
}

.support-card:hover .support-icon {
  background: var(--navy);
}

.service-heading {
  margin: 20px 0 10px;
  color: var(--navy);
}

#services .col-md-4 {
  margin-bottom: 30px;
}

/* Servicios */
#portfolio .portfolio-item {
  display: flex;
  flex-direction: column;
  margin: 0 0 30px;
}

#portfolio .portfolio-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

#portfolio .portfolio-link img {
  width: 100%;
  transition: transform 0.5s;
}

#portfolio .portfolio-link:hover img {
  transform: scale(1.06);
}

#portfolio .portfolio-hover {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(241, 90, 35, 0.85);
  opacity: 0;
  transition: opacity 0.4s;
}

#portfolio .portfolio-hover:hover {
  opacity: 1;
}

#portfolio .portfolio-caption {
  flex: 1;
  padding: 22px 20px;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  background-color: #fff;
  box-shadow: var(--shadow);
}

#portfolio .portfolio-caption h4 {
  margin: 0 0 4px;
  color: var(--navy);
}

#portfolio .portfolio-caption p {
  font-size: 15px;
  font-style: italic;
  margin: 0;
  font-family: var(--font-serif);
}

/* Ventanas modales */
.portfolio-modal {
  padding-right: 0 !important;
}

.portfolio-modal .modal-dialog {
  margin: 1rem;
  max-width: 100vw;
}

.portfolio-modal .modal-content {
  padding: 90px 0 60px;
  text-align: center;
  border: 0;
  border-radius: var(--radius);
}

.portfolio-modal h2 {
  font-size: 2.6em;
  margin-bottom: 15px;
  color: var(--navy);
}

.portfolio-modal p {
  margin-bottom: 30px;
}

.portfolio-modal p.item-intro {
  font-size: 16px;
  font-style: italic;
  margin: 20px 0 30px;
  font-family: var(--font-serif);
}

.portfolio-modal ul,
.portfolio-modal img {
  margin-bottom: 30px;
}

.portfolio-modal img {
  border-radius: var(--radius);
}

.portfolio-modal ul li:before {
  margin-right: 8px;
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
}

.portfolio-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 70px;
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
}

.portfolio-modal .close-modal:hover {
  color: var(--primary);
}

.portfolio-modal .legal {
  text-align: left;
  font-size: 14px;
}

.portfolio-modal .legal p {
  margin-bottom: 1rem;
}

.portfolio-modal .legal h5 {
  margin-top: 2rem;
  color: var(--navy);
  text-transform: uppercase;
}

.portfolio-modal .legal .legal-date {
  margin-top: 2rem;
  font-style: italic;
  color: var(--muted);
}

.portfolio-modal .legal h2,
.portfolio-modal .legal .btn {
  display: block;
  margin: 0 auto 30px;
  text-align: center;
}

/* Empresa (línea de tiempo) */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1px;
  content: '';
  background-color: #dde3ea;
}

.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
}

.timeline > li:after {
  display: table;
  clear: both;
  content: '';
}

.timeline > li:last-child {
  margin-bottom: 0;
}

.timeline .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 20px 0 100px;
  text-align: left;
}

.timeline .timeline-panel h4 {
  margin-top: 0;
  color: var(--navy);
}

.timeline .timeline-panel h4.subheading {
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: none;
}

.timeline .timeline-panel p {
  margin-bottom: 0;
}

.timeline .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border: 6px solid #fff;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: var(--shadow);
}

.timeline .timeline-image h4 {
  font-size: 10px;
  line-height: 14px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .timeline:before {
    left: 50%;
  }
  .timeline > li {
    min-height: 100px;
    margin-bottom: 100px;
  }
  .timeline .timeline-panel {
    float: left;
    width: 41%;
    padding: 0 20px 20px 30px;
    text-align: right;
  }
  .timeline .timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 30px 20px 20px;
    text-align: left;
  }
  .timeline .timeline-image {
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
  }
  .timeline .timeline-image h4 {
    font-size: 13px;
    line-height: 18px;
    margin-top: 18px;
  }
}

@media (min-width: 992px) {
  .timeline > li {
    min-height: 150px;
  }
  .timeline .timeline-panel,
  .timeline .timeline-inverted > .timeline-panel {
    padding: 0 20px 20px;
  }
  .timeline .timeline-image {
    width: 150px;
    height: 150px;
    margin-left: -75px;
  }
  .timeline .timeline-image h4 {
    font-size: 18px;
    line-height: 26px;
    margin-top: 32px;
  }
}

@media (min-width: 1200px) {
  .timeline > li {
    min-height: 170px;
  }
  .timeline .timeline-panel {
    padding: 0 20px 20px 100px;
  }
  .timeline .timeline-inverted > .timeline-panel {
    padding: 0 100px 20px 20px;
  }
  .timeline .timeline-image {
    width: 170px;
    height: 170px;
    margin-left: -85px;
  }
  .timeline .timeline-image h4 {
    margin-top: 42px;
  }
}

/* Equipo */
.team-member {
  margin-bottom: 50px;
  text-align: center;
}

.team-member img {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

.team-member h4 {
  margin: 25px 0 5px;
  color: var(--navy);
}

/* Contacto */
section#contact {
  color: #e9ecef;
  background: var(--dark) url("../img/map-image.png") center no-repeat;
}

section#contact .section-heading {
  color: #fff;
}

section#contact .section-subheading {
  color: #adb5bd !important;
}

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

section#contact .form-control {
  padding: 18px 20px;
  height: auto;
  border: 0;
  border-radius: 8px;
}

section#contact textarea.form-control {
  height: 236px;
}

section#contact .form-control:focus {
  box-shadow: 0 0 0 3px rgba(241, 90, 35, 0.5);
}

section#contact .form-control::placeholder {
  font-weight: 700;
  color: #adb5bd;
  font-family: var(--font-heading);
}

section#contact .privacy-info {
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  color: #adb5bd;
}

section#contact .privacy-check {
  margin-bottom: 1.5rem;
}

section#contact .contact-info {
  margin-top: 2rem;
  font-family: var(--font-heading);
}

section#contact .contact-info a {
  color: #fff;
}

section#contact .contact-info a:hover {
  color: var(--primary);
}

#success .alert {
  border-radius: 8px;
}

/* Pie */
footer {
  padding: 22px 0;
  text-align: center;
  font-size: 90%;
  line-height: 40px;
  color: #adb5bd;
  background: #0f1e2b;
  font-family: var(--font-heading);
}

footer a {
  color: #e9ecef;
}

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