/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: var(--negro);
  text-shadow: none;
  color: var(--crema);
}

::selection {
  background: var(--negro);
  text-shadow: none;
  color: var(--crema);
}

/*
 * 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
   ========================================================================== */

:root {
  --negro: #403939;
  --crema: #fffbf0;
  --marron: #564d4d;
  --hueso: #cdc5b8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--crema);
  color: var(--negro);
  font-family: "azo-sans-web", sans-serif;
  font-style: normal;
  font-optical-sizing: auto;
  font-weight: 300;
}

p {
  font-size: 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  text-transform: capitalize;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
}

p + p {
  margin-top: 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* ------------mios----------- */

@media (hover: hover) {
  nav a,
  p a {
    position: relative;
    display: inline-block;
    padding-bottom: 2px; /* espacio para que se vea el subrayado */
  }

  nav a::after,
  p a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1.5px;
    width: 100%;
    background-color: currentColor;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }

  nav a:hover::after,
  p a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
}

header {
  display: none;
  width: 100%;
  position: fixed;
  top: 0px;
  background-color: var(--crema);
  box-shadow: 0px 2px 15px rgb(0 0 0 / 8%);
}

@media only screen and (min-width: 768px) {
  header {
    display: block;
  }
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  gap: 32px;
}

header nav ul li a {
  display: block;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 450;
  text-align: center;
  width: 100%;
}

#banner {
  background-color: var(--hueso);
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#banner img {
  height: 55%;
  animation: 1.5s ease-in-out fade-in;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#somos-text {
  padding: 80px 40px;
}

#somos p + p {
  padding-top: 12px;
}

.highlight {
  font-weight: 500;
}

#somos-foto {
  height: 50vh;
  width: 100%;
  background-image: url(/img/somos.avif);
  background-position: center 70%;
  background-size: cover;
}

@media only screen and (min-width: 768px) {
  #somos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  #somos-text {
    padding: 120px 0;
    width: 50%;
  }

  #somos p {
    font-size: 18px;
  }

  #somos-foto {
    height: 70vh;
  }
}

.logo-empresa {
  height: 40vh;
  background-color: var(--hueso);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-empresa img {
  width: 40%;
}

.empresa-desc {
  padding: 96px 40px;
  color: var(--crema);
  background-color: var(--marron);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@media only screen and (min-width: 768px) {
  #vegetal,
  #gelato {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .logo-empresa {
    height: auto;
  }

  .empresa-desc {
    padding: 120px 0;
  }

  .empresa-desc p {
    width: 66%;
  }

  #gelato {
    grid-template-areas: "desc logo";
  }

  #gelato .logo-empresa {
    grid-area: logo;
  }

  #gelato .empresa-desc {
    grid-area: desc;
  }
}

footer {
  padding: 80px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

footer p + p {
  margin-top: 4px;
}

#contact-info {
  padding-top: 16px;
  display: grid;
  gap: 32px;
}

#contact-l,
#contact-r {
  text-align: center;
}

footer img {
  height: 100px;
  padding-top: 48px;
  padding-left: 40px;
}

@media only screen and (min-width: 768px) {
  #contact-info {
    grid-template-columns: 1fr 1fr;
  }

  #contact-l {
    text-align: right;
  }

  #contact-r {
    text-align: left;
  }
}

/* ==========================================================================
   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
 */

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

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

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

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