@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Oswald:wght@400;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

/* Reset */
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, img, 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;
}

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;
}

body {
  -webkit-text-size-adjust: none;
}

/* Box Model */
*, *:before, *:after {
  box-sizing: border-box;
}

/* Tipografía y fuentes */
html {
  font-size: 16pt;
}

body {
  background-color: #c2c2c2;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
  color: #030041;
  font-size: 16px;
}

h1, h2, #footer h2, #footer form input[type="submit"], .gallery-nav a {
    font-family: 'Sk-Modernist-Regular', sans-serif !important;
}

a {
  text-decoration: none;
}

/* Wrappers */
#wrapper {
  background-color: #c2c2c2;
}

/* Header */
#header {
  background: #c2c2c2;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10000;
}

#header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

#header .logo {
  display: flex;
  align-items: center;
}

#header .logo .symbol {
  width: 5.5rem;
  height: auto;
  margin-right: 1rem;
  display: block;
}

#header .logo .symbol img {
  width: 100%;
  height: auto;
}

#header .logo .title {
  color: #000000;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05rem;
  text-transform: none;
}

/* --- ESTILOS DE NAVEGACIÓN --- */

/* Menú de escritorio */
#header .top-nav {
    display: none;
}
@media screen and (min-width: 981px) {
    #header .top-nav {
        display: block;
    }
}
#header .top-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
#header .top-nav ul li {
    margin-left: 1.5rem;
}
#header .top-nav ul li a {
    color: #030041;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.2s ease-in-out;
}
#header .top-nav ul li a:hover {
    color: #555;
}

/* Menú hamburguesa y panel lateral */
#header a[href="#menu"] {
    display: none;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}
#header a[href="#menu"] span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #000000;
    margin: 2px 0;
    transition: all 0.2s ease-in-out;
}

#menu {
    transform: translateX(-20rem);
    transition: transform 0.5s ease;
    -webkit-overflow-scrolling: touch;
    background: #e0e0e0;
    color: #030041;
    width: 20rem;
    height: 100%;
    max-width: 80%;
    position: fixed;
    right: auto;
    left: 0;
    top: 0;
    z-index: 10001;
    overflow-y: auto;
    padding: 3rem 1.5rem;
}
#menu h2 {
    font-family: 'Oswald', sans-serif !important;
    color: #030041;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
#menu ul li a {
    font-family: 'Lato', sans-serif;
    color: #333;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ccc;
}
#menu ul li:last-child a {
    border-bottom: none;
}
#menu ul li a:hover {
    color: #000;
}

#menu .close {
    display: none !important;
}

body.is-menu-visible #menu {
    transform: translateX(0);
}

@media screen and (max-width: 980px) {
    #header .top-nav {
        display: none;
    }
    #header a[href="#menu"] {
        display: flex;
    }
}


/* --- FIN ESTILOS DE NAVEGACIÓN --- */

/* Main */
#main {
  padding: 4rem 2rem;
  background: #c2c2c2;
  color: #030041;
}

#main header {
  text-align: center;
  margin-bottom: 3rem;
}

#main header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #030041;
  line-height: 1.2;
}


/* Estilos "Nosotros" */
.content-column {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.content-column p {
    font-size: 1.1rem;
    line-height: 1.6;
    display: block;
    margin: 0 auto 1em auto;
    max-width: 75ch;
    text-align: left;
}
.content-column .valores-section {
    text-align: left;
}
.content-column .image.main {
    width: 100%;
    max-width: 100%;
}
#main .inner > h1.centered-title {
    font-size: 2.8rem;
    margin-bottom: 1em;
}
#main .inner > h2.centered-title {
    font-size: 2.3rem;
    margin-bottom: 1.5em;
}
.image-zoom-no-shadow img {
    transition: transform 0.3s ease;
    border-radius: 8px;
}
.image-zoom-no-shadow:hover img {
    transform: scale(1.05);
}
.valores-section p > strong {
    font-weight: 900;
}


/* Enlace destacado a "Nuestra Historia" */
.featured-story {
    margin-bottom: 3rem;
}
.featured-story article {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.featured-story article:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
}
.featured-story article a {
    display: block;
    position: relative;
}
.featured-story article .image {
    display: block;
    position: relative;
    height: 350px;
    width: 100%;
}
.featured-story article .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    object-position: center;
}
.featured-story article:hover .image img {
    transform: scale(1.05);
}
.featured-story article .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    color: #c2c2c2;
    text-align: center;
}
.featured-story article .content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #c2c2c2;
}


/* Grilla de Galerías Principal */
.tiles {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: 1fr;
}
@media screen and (min-width: 737px) {
    #obras-destacadas.tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}
.tiles article {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  min-height: 300px;
}
.tiles article:hover {
  transform: translateY(-10px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
}
.tiles article a {
  display: block;
  position: relative;
  height: 100%;
}
.tiles article a .image {
  display: block;
  position: relative;
  height: 100%;
}
.tiles article a .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  object-position: center;
}
.tiles article a .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #c2c2c2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.tiles article:hover .image img {
  transform: scale(1.05);
}
.tiles article .content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #c2c2c2;
}

/* Estilos de Galería Interna */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.gallery img {
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
}
.gallery-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    align-items: center;
}
.gallery-nav a {
    font-family: 'Sk-Modernist-Regular', sans-serif !important;
    background-color: #030041;
    color: #c2c2c2;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.2s;
}
.gallery-nav a:hover {
    background-color: #121245;
}

/* Footer */
#footer {
  background: #c2c2c2;
  padding: 4rem 2rem;
  text-align: center;
  color: #030041;
}
#footer h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #030041;
}
#footer form {
  max-width: 500px;
  margin: 0 auto 3rem;
}
#footer form .fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#footer form .field {
  width: 48%;
  margin-bottom: 1rem;
}
#footer form input[type="text"],
#footer form input[type="email"],
#footer form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #555;
  background: #333;
  color: #F0F0F0;
  border-radius: 4px;
}
#footer form textarea {
  resize: vertical;
  height: 100px;
}
#footer .actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
#footer .actions input[type="submit"] {
  background: #030041;
  color: #F0F0F0;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 700;
}
#footer .actions input[type="submit"]:hover {
  background-color: #030041;
}
#footer .icons {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
#footer .icons li {
  margin: 0 0.75rem;
}
#footer .icons a {
  color: #030041;
  font-size: 1.75rem;
  transition: color 0.2s;
}
#footer .icons a img {
    width: 2rem;
    height: auto;
}
#footer .icons a:hover {
  color: #FFFFFF;
}
.copyright {
  font-size: 0.9rem;
  color: #C0C0C0;
}
.copyright li {
  display: inline-block;
  margin: 0 0.5rem;
}
.gallery .project-section {
    margin-bottom: 3rem;
}
.gallery h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #030041;
}

/* --- NUEVO: Estilos Responsivos para Móvil --- */
@media screen and (max-width: 736px) {
    /* Ajusta el padding principal para dar más aire */
    #main {
        padding: 2rem 1rem;
    }

    /* Centra los títulos en móvil */
    #main .inner > h1.centered-title,
    #main .inner > h2.centered-title {
        text-align: center;
    }

    /* Asegura que las imágenes en "Nosotros" se escalen bien */
    .nosotros-page .image.main img {
        width: 100%;
        height: auto;
    }

    /* Asegura que la columna de contenido ocupe un ancho prudente */
    .content-column {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}