/*Importaciones de estilos de componentes*/

/*@import url("./components/nav-bar/nav-bar.css");*/

/* Variables de Color (Escala de grises) */
:root {
  --bg-main: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-dark: #121212;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --card-bg: #fafafa;
}

/* Estilos Globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  /*background-color: #f5f5f5;*/
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/**************************************************** 
Navbar
*************************** */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.navbar .logo img {
  width: 50px;
  filter: brightness(0);
}
.navbar nav a {
  color: var(--text-dark);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: var(--text-muted);

}
/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Tablets y móviles */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 80px;
    left: auto;
    width: 90%;/*100 anteriormente*/
    background: rgba(255, 255, 255, 0.98);
    /*border-top: 1px solid var(--border-color);*/
    margin-top: 22px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.3s ease;

  }

  .navbar nav.active {
    max-height: 300px;
  }

  .navbar nav a {
    margin: 15px 0;
    font-size: 1rem;
  }
}
/* *************************************HERO***************************************************** */
.hero-section {
  display: flex;
  flex-direction: column; /* Diseño vertical por defecto para móviles */
  min-height: 100vh;
  background-color: #ffffff;
  color: #000000;
  width: 100%;

  box-sizing: border-box;
  margin-top: 50px;
}

/* --- Contenedor de la Imagen --- */
.imagen-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.imagen-hero img {
  width: 100%;
  max-width: 400px; /* Evita que la imagen se deforme o crezca demasiado */
  height: auto;
  object-fit: cover;
  /*filter: grayscale(100%); */
}

/* --- Contenedor del Texto (Contenido Hero) --- */
.hero-content {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Alineación limpia a la izquierda */
  box-sizing: border-box;
}

/* Tipografía e Impacto Visual */
.hero-content h1 {
  font-size: 1.8rem; /* Tamaño adaptado para pantallas pequeñas */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #000000;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333; /* Gris oscuro para mejorar la lectura sin romper la paleta */
  margin-bottom: 30px;
  max-width: 600px;
}

/* --- Botón de Acción Principal --- */
.hero-content .btn {
  display: inline-block;
  padding: 15px 25px;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #000000;
  text-align: center;
  transition: all 0.3s ease-in-out;
  width: 100%; /* Botón ancho completo en móviles para facilitar el clic */
  box-sizing: border-box;
}

/* Efecto hover invertido profesional */
.hero-content .btn:hover {
  background-color: #ffffff;
  color: #000000;
}


/* ==========================================
   MEDIA QUERY PARA PANTALLAS GRANDES 
   (Laptops y Monitores a partir de 992px)
   ========================================== */
@media (min-width: 992px) {
  .hero-section {
    flex-direction: row-reverse; /* Imagen a la derecha, texto a la izquierda */
    align-items: stretch;
  }

  /* La imagen toma exactamente la mitad de la pantalla */
  .imagen-hero {
    width: 50%;
    padding: 0; /* Eliminamos paddings para un diseño limpio tipo "split screen" */
  }

  .imagen-hero img {
    max-width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen llene el contenedor elegantemente */
  }

  /* El contenido toma la otra mitad */
  .hero-content {
    width: 50%;
    padding: 80px; /* Espaciado interno más amplio y elegante */
  }

  .hero-content h1 {
    font-size: 2.8rem; /* Mayor jerarquía visual en escritorio */
    margin-bottom: 25px;
  }

  .hero-content p {
    font-size: 1.15rem;
    margin-bottom: 40px;
  }

  .hero-content .btn {
    width: auto; /* El botón recupera su tamaño natural en PC */
  }
}

.btn {
  display: inline-block;
  background-color: var(--bg-dark);
  color: var(--bg-main);
  padding: 12px 30px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
/*************************************************Sección de About me********************************/

.about {
  /*background-color: #1a1a1a;*/
  /* margin: 300px;*/
  width: 100%;
  margin: 100px auto;
  padding: 20px;
}
.container-about {
  /*background-color: #666666;*/
  width: 70%;
  margin: 0 auto;
  flex-wrap: wrap;
  /*Agregado*/
  /*display: flex;*/
  /*flex-wrap: wrap;*/
  /*display: flex;*/
}

.contend-about {
  padding: 10px;
  /*background-color: #666666;*/
  /*AGREGADO*/
  /* width: 50%;
  flex-wrap: wrap;*/
}

.imgabout {
  margin: 12px;
  /*background-color: #888;*/
  padding: 15px;
  /*AGREGADO*/
  /*width: 50%;
  align-content: center;*/
}

.imgabout img {
  width: 100%;
  /*AGREGADO*/
}

/*.imgabout img:hover{
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}*/
@media (max-width: 768px) {
  /*.about {
    background-color: #333;
  }*/
  .container-about {
    /*background-color: #222;*/
    width: 96%;
  }
}
/* *****************************************Sección Proyectos***************************** */
/* Reseteo local enfocado en el bloque para evitar interferencias */
.hs-cards-section,
.hs-cards-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Bloque Contenedor Principal */
.hs-cards-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header de la sección */
.hs-cards-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.hs-cards-section__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* Malla / Layout Grid */
.hs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Tarjeta Individual */
.hs-card-item {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.hs-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Elementos de la Tarjeta */
.hs-card-item__media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.hs-card-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-card-item__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hs-card-item__headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hs-card-item__subline {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.85rem;
}

.hs-card-item__text {
  font-size: 0.925rem;
  line-height: 1.6;
  color: #475569;
}
/* ************************************************Sección Contacto********************************* */
.contact-section {
  background-color: var(--bg-main);
}

.form-container {
  max-width: 600px;
}

.form-container p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-dark);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  max-width: 560px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--bg-dark);
}

.btn-submit {
  width: 100%;
  border-radius: 2.5px;
  transition: all .5s;
}

.btn-submit:hover{
  background-color: #888;
  color: #000000;
}

/* Mensaje de estado del Formulario */
#form-message {
  margin-top: 20px;
  padding: 12px;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid;
}

#form-message.success {
  background-color: #f0f0f0;
  border-color: var(--bg-dark);
  color: var(--text-dark);
}

#form-message.error {
  background-color: #fff0f0;
  border-color: #cc0000;
  color: #cc0000;
}

.hidden {
  display: none;
}

/**************************************
                          FOOTER

*/
.footer {
  background: #111;
  color: #fff;
  padding: 50px 20px 20px;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content div{  
  height: 100px;
}

.footer-schedule h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-schedule p {
  color: #b0b0b0;
}

.footer-social {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

.footer-social div{
  display: flex;
  gap: 15px;
}

.footer-social h3{
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.footer-social a {
  width: 45px;
  height: 45px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  background: #222;
  color: #fff;

  text-decoration: none;
  font-size: 1.3rem;

  transition: 0.3s;
}

.footer-social a:hover {
  background: #444;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
}

.logofooter img {
  width: 60px;
}

.contacme p {
  color: #b0b0b0;
}

.contacme h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.legales-policies{
  display: flex;
  flex-direction: column;
}

.legales-policies h3{
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.legales-policies a{
  text-decoration: none;
  color: #b0b0b0;
}

@media (max-width: 768px) {

  .footer-content {
    display: flex;
    flex-direction: column; /* Apila las secciones verticalmente */
    gap: 20px; /* Genera espacio entre cada sección */
    width: 100%;
  }

  .footer-content > * {
    width: 100%; /* Cada sección toma el ancho disponible */
  }
}
/*Mensaje*/
#form-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.hidden {
  display: none;
}
/***************************************GALLERIA*******************************************/

.container-title-ex{
/*background-color: #333;*/
max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 20px;
    /*background-color: #f5f5f5;*/
}

.container-title-ex h2{
  /*background-color: #444;*/
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

/* Contenedor Grid Principal */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px; /* Altura base para las filas */
    gap: 15px;
    max-width: 1200px;
    margin: 20px auto;
    /*padding-top: 100px;*/
    /*padding: 30px;*/
    /*background-color: red;*/
}

/* Estilo general de los items e imágenes */
.gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.gallery-item:hover{
  transform: translateY(-6px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all ease-in-out 0.4s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que las imágenes se distorsionen */
    display: block;
}

/* --- Posicionamiento específico del Grid --- */

.item-palm {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.item-pier {
    grid-column: 2;
    grid-row: 1;
}

.item-bridge {
    grid-column: 2;
    grid-row: 2;
}

.item-beach {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.item-mountain {
    grid-column: 4;
    grid-row: 1;
}

.item-red-wall {
    grid-column: 4;
    grid-row: 2 / span 2;
}

.item-houses {
    grid-column: 1;
    grid-row: 3;
}

.item-text-card {
    grid-column: 2 / span 2;
    grid-row: 3;
}

/* Tarjeta con el texto flotante */
.text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.text-overlay h2 {
    color: #0d1b2a;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Responsividad (Mobile) --- */
@media (max-width: 900px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
    
    /* Reajuste de posiciones para pantallas medianas */
    .item-palm, .item-beach, .item-red-wall {
        grid-column: auto;
        grid-row: auto;
    }
    .item-pier, .item-bridge, .item-mountain, .item-houses {
        grid-column: auto;
        grid-row: auto;
    }
    .item-text-card {
        grid-column: 1 / span 2;
        grid-row: auto;
    }
}

@media (max-width: 550px) {
    .gallery-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .gallery-item {
        height: 250px;
    }
    .item-text-card {
        grid-column: auto;
        height: 180px;
    }
}