/*

Compass Template
    
http://www.templatemo.com/tm-454-compass


http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)

*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*------------------------------------------------------
	Basic Styling 
--------------------------------------------------------*/
body {
  font: 13px/23px "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  color: #777777;
}

a {
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input::-moz-focus-inner {
  border: 0;
}

a:hover, a:active, a:focus {
  text-decoration: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

.top-header .right-header ul.social-icons, .main-header .menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#servicios, #sistemas, #proyectosEjecutados, #contacto {
  padding-top: 120px;
}

/*------------------------------------------------------
	Header Styles 
--------------------------------------------------------*/
.top-header {
  background: #D62828;
  color: white;
  padding: 10px 0;
}
.top-header .left-header span {
  display: inline-block;
  margin: 8px 30px 0 0;
}
.top-header .left-header span i {
  margin-right: 10px;
}
.top-header .right-header ul.social-icons li {
  display: inline-block;
}
.top-header .right-header ul.social-icons li a {
  color: white;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 30px;
  border: 1px solid white;
  -webkit-border-radius: 16px;
  border-radius: 16px;
  margin: 0 5px;
}
.top-header .right-header ul.social-icons li a:hover {
  background-color: white;
  color: #D62828;
}

.main-header {
  position: fixed;
  width: 100%;
  z-index: 9999;
  padding: 40px 0;
  background: white;
  -webkit-box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15) ;
  -moz-box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15) ;
  box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15) ;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.main-header .logo {
  margin-top: 5px;
}
.main-header .logo h1 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}
.main-header .logo h1 a {
  color: #444444;
}
.main-header .menu {
  margin-top: 10px;
}
.main-header .menu ul li {
  display: inline-block;
  margin-left: 15px;
}
.main-header .menu ul li a {
  text-transform: uppercase;
  color: #777777;
  font-size: 15px;
  padding: 8px 15px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.main-header .menu ul li a.current,
.main-header .menu ul li.active a,
.main-header .menu ul li a:hover {
  background: #D62828;
  color: white;
}

.main-header-shrink {
  padding: 25px 0;
  top: 0;
}
/*CAMBIOS ACA*/
/* Logo gráfico – desktop */
.main-header .logo img{
  height: 60px;          /* coincide con el alto visible del header (40 px de padding + ~20 px) */
  width: auto;           /* mantiene la proporción */
  display: block;        /* elimina espacio blanco bajo la imagen */
  transition: height .4s ease;
}

/* Logo cuando el header se contrae al hacer scroll  */
.main-header-shrink .logo img{
  height: 40px;          /* mismo factor de reducción que el padding del header */
}

/* Logo para pantallas ≤ 760 px (el header mide 60 px) */
@media (max-width: 760px){
  .main-header .logo img{
    height: 40px;
  }
}

/*------------------------------------------------------
	Basic Layout Styles 
--------------------------------------------------------*/
.title-section {
  margin-bottom: 80px;
}
.title-section h2 {
  font-size: 24px;
  font-weight: normal;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
.title-section span {
  display: block;
  width: 70px;
  height: 4px;
  background: #D62828;
  margin: 0 auto;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 30px;
}

.mainBtn {
  background: linear-gradient(135deg, #D62828 0%, #B41E1E 100%);
  color: white;
  display: inline-block;
  text-transform: uppercase;
  padding: 15px 35px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
  letter-spacing: 0.5px;
}
.mainBtn:hover {
  background: linear-gradient(135deg, #B41E1E 0%, #D62828 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(214, 40, 40, 0.4);
}
.mainBtn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}
.mainBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.mainBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.mainBtn:hover::before {
  left: 100%;
}

/*------------------------------------------------------
	Services Styles 
--------------------------------------------------------*/
#servicios .service-item {
  padding: 30px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  min-height: 250px;
}
#servicios .service-item:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
#servicios .service-item .service-header {
  padding-bottom: 20px;
  clear: both;
}
#servicios .service-item .service-header i {
  color: #D62828;
  font-size: 32px;
  float: left;
  margin-right: 25px;
}
#servicios .service-item .service-header h3 {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 5px;
}

/*------------------------------------------------------
	Portfolio Styles 
--------------------------------------------------------*/
#sistemas {
  padding: 100px 0;
  margin-top: 100px;
  background: linear-gradient(135deg, #2c2e2e 0%, #3d3f3f 50%, #4a4c4c 100%);
  position: relative;
}
#sistemas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
  pointer-events: none;
}
#sistemas .title-section h2 {
  color: white;
}
#sistemas .portfolio-thumb {
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#sistemas .col-md-4:nth-child(1) .portfolio-thumb {
  transition-delay: 0.1s;
}
#sistemas .col-md-4:nth-child(2) .portfolio-thumb {
  transition-delay: 0.2s;
}
#sistemas .col-md-4:nth-child(3) .portfolio-thumb {
  transition-delay: 0.3s;
}
#sistemas .col-md-4:nth-child(4) .portfolio-thumb {
  transition-delay: 0.1s;
}
#sistemas .col-md-4:nth-child(5) .portfolio-thumb {
  transition-delay: 0.2s;
}
#sistemas .col-md-4:nth-child(6) .portfolio-thumb {
  transition-delay: 0.3s;
}
#sistemas .portfolio-thumb:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
#sistemas .portfolio-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#sistemas .portfolio-thumb:hover img {
  transform: scale(1.05);
}
#sistemas .portfolio-thumb .overlay {
  opacity: 0;
  visibility: visible;
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.9), rgba(180, 30, 30, 0.95));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#sistemas .portfolio-thumb .overlay .inner {
  position: absolute;
  padding: 30px 25px;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -30%);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#sistemas .portfolio-thumb:hover .overlay .inner {
  opacity: 1;
  transform: translate(-50%, -50%);
}
#sistemas .portfolio-thumb .overlay .inner h4 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}
#sistemas .portfolio-thumb .overlay .inner h4 a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
#sistemas .portfolio-thumb .overlay .inner h4 a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
#sistemas .portfolio-thumb .overlay .inner span {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
#sistemas .portfolio-thumb:hover .overlay {
  opacity: 1;
  visibility: visible;
}

/*------------------------------------------------------
	Proyectos ejecutados
--------------------------------------------------------*/
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  height: 150px; /* Alto uniforme del contenedor */
  background-color: transparent; /* o blanco si se desea contraste */
}

.logo-wrapper img {
  max-height: 100%;     /* Escala vertical sin recortar */
  max-width: 100%;      /* Escala horizontal sin deformar */
  object-fit: contain;  /* Muy importante: no recorta */
  display: block;
}
/*------------------------------------------------------
	Contact Styles 
--------------------------------------------------------*/
#contacto .contact-form .full-row {
  width: 100%;
  margin-bottom: 20px;
}
#contacto .contact-form input, #contacto .contact-form textarea {
  outline: 0;
  display: block;
  border: 2px solid #e1e1e1;
  width: 100%;
  max-width: 100%;
  padding: 15px 20px;
  color: #555555;
  background: #f9f9f9;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
#contacto .contact-form input:focus, #contacto .contact-form textarea:focus {
  border-color: #D62828;
  background: white;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.1);
  transform: translateY(-2px);
}
#contacto .contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444444;
  font-size: 14px;
}
#contacto .contact-form input.mainBtn {
  display: inline-block;
  width: auto;
  border: 0;
  padding: 10px 15px;
  color: white;
}
#contacto .map-holder {
  padding: 5px;
  background-color: white;
  border: 1px solid #d6d6d6;
}
#contacto .contact-info {
  margin-top: 30px;
}
#contacto .contact-info span {
  margin-top: 20px;
  display: block;
  font-size: 14px;
}
#contacto .contact-info span i {
  color: #D62828;
  font-size: 16px;
  margin-right: 12px;
}

.flexslider {
  margin-top: 114px;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  overflow: hidden;
  position: relative;
}

.flexslider .slides {
  position: relative;
}

.flexslider .slides li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flexslider .slides img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure flex-viewport also has position relative */
.flex-viewport {
  position: relative !important;
}

.flex-direction-nav a {
  color: #444444;
  width: 40px;
  height: 40px;
  background-color: white;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  margin: -20px 0 0 0;
  text-align: center;
  line-height: 40px;
}

.flex-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
}

.flex-caption h2 {
  font-size: 50px;
  text-transform: uppercase;
  font-weight: 700;
  color: white;
  margin-bottom: 45px;
}

.flex-caption .caption-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 50px 60px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  text-align: center;
}

.flex-caption h1 {
  color: white;
  font-size: 28px;
  font-family: "Open Sans", sans-serif;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.flex-caption p {
  color: white;
  font-size: 22px;
  font-family: "Open Sans", sans-serif;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.flex-caption p br {
  display: block;
  content: "";
  margin-top: 10px;
}
.flex-caption span {
  background: url(../images/slider-dec.png) no-repeat;
  width: 60px;
  height: 9px;
  display: block;
  margin: 30px auto;
}

/*------------------------------------------------------
	Footer Styles 
--------------------------------------------------------*/
.site-footer {
  margin-top: 100px;
  background-color: #D62828;
  color: white;
  padding: 25px 0;
}
.site-footer p {
  margin-top: 10px;
}
.site-footer a {
  color: white;
  text-align: center;
  display: block;
}
.site-footer .go-top {
  float: right;
  text-transform: uppercase;
}
.site-footer .go-top i {
  display: block;
}

.footer-social {
  margin-top: 10px;
}
.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: white;
  color: #D62828;
  transform: translateY(-3px);
}

/********************************
IPAD LANDSCAPE (1024x768)
********************************/
/********************************
IPAD PORTRAIT (768x1024)
********************************/
@media only screen and (max-width: 960px) {
  .flexslider {
    margin-top: 100px;
  }

  .main-header {
    padding: 15px 0;
  }
  .main-header .logo {
    margin-top: 20px;
  }

  .service-item, .team-member {
    margin-bottom: 50px;
  }

  .our-skills {
    margin-top: 60px;
  }

  .flex-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .flex-caption h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .flex-caption p {
    font-size: 16px;
    line-height: 1.5;
    padding: 30px 25px;
  }

  .left-header, .right-header {
    text-align: center;
  }
}
/********************************
IPHONE 4-4S-5 LANDSCAPE (568x320)
********************************/
@media only screen and (max-width: 760px) {
  .flex-caption {
    display: none !important;
  }

  .contact-form {
    margin-bottom: 60px;
  }

  .main-header {
    height: 60px;
  }
  .main-header .logo {
    margin: 0;
  }

  .flexslider {
    margin-top: 60px;
  }

  #sistemas .portfolio-thumb {
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
  
  #sistemas .portfolio-thumb img {
    height: 220px;
  }
  
  #sistemas .portfolio-thumb:hover {
    transform: translateY(-5px);
  }
  
  #sistemas .portfolio-thumb .overlay .inner h4 {
    font-size: 18px;
  }

}
/********************************
IPHONE 4-4S-5 PORTRAIT (320x568)
********************************/
