@import 'grid.css';

/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


/************* CUSTOM CSS ****************/

/* Variables */

:root {
  --primary-color: #600000;
  --secondary-color: #000000;
  --red-icon-color: #E30000;
  --light-color: #ffffff;
  --text-color: #6B6262;
  --dark-text-color: #000000;
  --highlight-color: #14D03D;
}

html, body, *{ font-family: 'Poppins', sans-serif; font-size: 16px; box-sizing: border-box; overflow-x: hidden; }

/* RESET */
a{ text-decoration: none; color: inherit;font-size: inherit;}
ul, h1, h2, h3, h4, h5{ margin-block: 0;padding-inline: 0;}

/* Position */
.flex{ display: flex;}
.flex-row{ flex-direction: row;}
.flex-column{ flex-direction: column;}
.justify-start{justify-content: flex-start;}
.justify-end{justify-content: flex-end;}
.justify-center{justify-content: center;}
.space-between{justify-content: space-between;}
.space-around{justify-content: space-around;}
.space-evenly{justify-content: space-evenly;}
.align-start{align-items: flex-start;}
.align-center{align-items: center;}
.align-end{align-items: flex-end;}
.relative{position: relative;}


/* Text */
.text-uppercase{text-transform: uppercase}
.text-lowercase{text-transform: lowercase}
.text-left{text-align: left}
.text-center{text-align: center}
.text-right{text-align: right}
.text-small{font-size: 0.75rem}
.text-white{color: #ffffff}
.font-light{font-weight: 300}
.font-normal{font-weight: 400}
.font-bold{font-weight: 700}
.heading-1{font-size: 2rem; padding: 0}
.heading-2{font-size: 1.875rem; padding: 0}
.heading-3{font-size: 1.5rem; padding: 0}
.heading-4{font-size: 1.25rem; padding: 0}
.heading-5{font-size: 1rem; padding: 0}

/* Lists */
.list-style-none{list-style-type: none;}

/* Margins & Paddings */
.margin-top-10{margin-top: 10px;}
.margin-top-20{margin-top: 20px;}
.margin-top-30{margin-top: 30px;}
.margin-top-40{margin-top: 40px;}
.margin-top-50{margin-top: 50px;}
.margin-bottom-10{margin-bottom: 10px;}
.margin-bottom-20{margin-bottom: 20px;}
.margin-bottom-30{margin-bottom: 30px;}
.margin-bottom-40{margin-bottom: 40px;}
.margin-bottom-50{margin-bottom: 50px;}
.margin-left-10{margin-left: 10px;}
.margin-left-20{margin-left: 20px;}
.margin-left-30{margin-left: 30px;}
.margin-left-40{margin-left: 40px;}
.margin-left-50{margin-left: 50px;}
.margin-right-10{margin-right: 10px;}
.margin-right-20{margin-right: 20px;}
.margin-right-30{margin-right: 30px;}
.margin-right-40{margin-right: 40px;}
.margin-right-50{margin-right: 50px;}
.margin-centered{margin-left: auto; margin-right: auto;}

.padding-top-10{padding-top: 10px;}
.padding-top-20{padding-top: 20px;}
.padding-top-30{padding-top: 30px;}
.padding-top-40{padding-top: 40px;}
.padding-top-50{padding-top: 50px;}
.padding-bottom-10{padding-bottom: 10px;}
.padding-bottom-20{padding-bottom: 20px;}
.padding-bottom-30{padding-bottom: 30px;}
.padding-bottom-40{padding-bottom: 40px;}
.padding-bottom-50{padding-bottom: 50px;}
.padding-left-10{padding-left: 10px;}
.padding-left-20{padding-left: 20px;}
.padding-left-30{padding-left: 30px;}
.padding-left-40{padding-left: 40px;}
.padding-left-50{padding-left: 50px;}
.padding-right-10{padding-right: 10px;}
.padding-right-20{padding-right: 20px;}
.padding-right-30{padding-right: 30px;}
.padding-right-40{padding-right: 40px;}
.padding-right-50{padding-right: 50px;}
.padding-right-10r{ padding-right: 10rem}
.padding-left-10r{ padding-left: 10rem}

/* Layout */
.container{
  /*border-left: 1px solid rgba(0,0,0,0.2);
  border-right: 1px solid rgba(0,0,0,0.2);*/
  width: 100%;
  height: 100%;  
  max-width: 1140px;
  margin: 0 auto;
}
.row{
  padding: 0 12px;
}
.w-100{ width: 100%;}
.h-100{ height: 100%;}
.vw-100{ width: 100vw;}
.vh-50{ height: 50vh;}
.vh-80{ height: 80vh;}
.vh-90{ height: 90vh;}
.vh-100{ height: 100vh;}

/* Misc */
.pointer{cursor: pointer;}
.bg-primary{background-color: var(--primary-color)}
.bg-secondary{background-color: var(--secondary-color)}
.color-highlight{color: var(--highlight-color)}
.bg-img{background-image: url('../img/bg-body.webp');}
.overflow-hidden{overflow: hidden;}
.rounded{border-radius: 0.5rem;}
.button{border: 0;}
.border-white{border: 1px solid white}
.shadow-dark{filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));}
.zoom:hover{
  overflow: hidden;
  transform: scale(1.4);
  transition: 1s ease-in-out;
}
.success{color: var(--highlight-color)}
.danger{color: red}

/* Header & Footer Bar */
.header-bar{
  background: var(--secondary-color);
  color: #AEAEAE;
  height: 120px;
  width: 100vw;
}

.header-bar .logo,
.footer-bar .logo{
  width: 100%;
  max-width: 160px;
}
.header-bar-link,
.footer-bar-link{
  max-width: 240px;
}
.header-bar .icon,
.footer-bar .icon{
  color: var(--red-icon-color);
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Nav Bar */
.navbar{
  width: 100vw;
  height: 74px;
  background-color: var(--primary-color);
}
.navbar-links{ 
  height: 74px;
  border-right: 1px solid #480000;
}
.navbar-link{
  width: 110px;
  height: 74px;
  color: #ffffff;
  border-left: 1px solid #480000;
}
.navbar-link:hover{
  background: linear-gradient(180deg, rgba(92,1,1,1) 0%, rgba(72,0,0,1) 100%);
}
.navbar-link a{
  padding-bottom: 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

/* Hero */
.header{
  background-color: #fff;
  background-image: url('../img/hero-img.webp');
  background-size: cover;
  overflow: hidden;
}
.hero{
  height: 80vh;
  width: 100vw;
  background-color: rgba(0,0,0,0.5);
}
.hero-footer{
  background-color: #000000;
  border-radius: 5px 5px 0 0;
}
.hero-footer-text {
  font-size: 1.125rem;
  max-width: 70ch;
  text-align: center;
  word-break: keep-all;
}


/*  Filosofia */

#filosofia{
  border-top: 1px solid #000;
  border-bottom: 1px solid #AEAEAE;
}

.img-filosofia{
  width: 360px;
  height: 80vh;
  background-image: url('../img/img-filosofia.webp');
  background-size: cover;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}
.about-us-text{
  max-width: 800px;
  padding: 0.875rem;
}
.about-us-text p{
  font-size: 1rem;
}

.section-title {
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #fff;
}


/* Servicios */
.services-grid{
  column-gap: 2em;
  row-gap: 2em;
}
.card{
  width: 300px;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  overflow: hidden;
}
.card-body{
  width: 300px;
  height: 200px;
  background: black;
  overflow: hidden;
  max-width: 300px;
  
}
.card-body img{
  width: 100%;
  height: 200px;
  opacity: 0.7;
}

.card-footer{
  background: black;
  height: 48px;
  font-size: 1rem;
}
.button:hover{
  background-color: var(--secondary-color);
}
.button-text{
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
}

/* Productos */

#productos .section-title{
  border-bottom: 1px solid #000;
}
.img-products {
  max-width: 360px;
}

/* Clientes */
#clientes .section-title{
  border-bottom: 1px solid #000;
}

/* Contacto */
.form-input{
  display: block;
  width: 100%;
  padding:.75rem;
  margin-bottom: 0.5rem;
}
.form-input:focus {
  outline: none;
  border-radius: 0;
  border: 1px solid red;
}

/* MISC */
.scroll-top{
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border: 1px solid #fff;
  background-color: var(--primary-color);
}


.scroll-top:hover{
  transform:scale(1.2);
}

@media (min-width: 767px) and (max-width: 1024px){
  .vh-100,.vh-90,.vh-50,.vh-80{
    height: fit-content;
  }
  .about-us {
    padding-bottom: 40px;
  }
  .img-filosofia{
    height: auto;
  }
  .button{
    margin-bottom: 50px;
  }
  .logo-secondary{
    margin-top: 0;
  }
  .hero{
    height: 80vh;
  }
  .hero .hero-legend{
    padding: 30vh 0;
  }
  .justify-end{
    justify-content: center;
  }
  .hero-legend .heading-4,
  .hero-legend .heading-2{
    justify-content: center;
    text-align: center;
    padding-bottom: 1rem;
  }
  .navbar-links.justify-end{
    justify-content: flex-end;
  }
}
@media (max-width: 767px){
  html, body, * {
    font-size: 14px;
  }
  .vh-100,.vh-90,.vh-50,.vh-80{
    height: auto;
  }
  .hero{
    height: 65vh;
  }
  .hero .hero-legend{
    padding: 4rem 0;
  }
  .justify-end{
    justify-content: center;
  }
  .hero-legend .heading-4,
  .hero-legend .heading-2{
    justify-content: center;
    text-align: center;
    padding-bottom: 1rem;
  }
  .hero-footer-text{
    font-size: 14px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #filosofia .container{
    flex-direction: column;
  }
  .img-filosofia{
    width: 100%;
    height: 400px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
  }
  .logo-secondary{
    margin-top: 1rem;
    margin-bottom: 3rem;
  }
  .section-title{
    text-align: center;
    padding: 1rem 2rem;
    justify-content: center;
    margin: 20px auto 0;
  }
  #productos .container{
    padding-right: 0;
    padding-left: 0;
  }
  .padding-left-40,.padding-left-50, .padding-right-50{
    padding: 0
  }
  #clientes .flex-row{
    flex-direction: column;
    padding-bottom: 1rem;
  }
  #clientes img{
    max-width: 200px;
    margin: 0 auto;
    padding: 0;
  }
  #servicios button{
    margin-bottom: 50px;
  }
}


