:root {
  --primary: #97b89f;
  --secondary: #f5f5f5;
  --accent: #4f7c6d;
  --soft: #ffffff;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: Arial, Verdana, sans-serif;
  color: #666666;
  line-height: 1.5;
  background-color: var(--soft);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--primary);
  color: var(--soft);
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: normal;
}
@media (max-width: 768px) {
  .site-title {
    font-size: 1.6rem;
  }
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 2em;       
  padding-bottom: 2em;   
  gap: 1.5rem;
  list-style: none;      
  margin: 0;             
  padding-left: 0;  
}

nav a {
  text-decoration: none;
  color: var(--soft);
  font-weight: 500;
  font-size: 1rem;
}

.top-bar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}


.site-header {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}


.top-bar.shrink .site-title {
  font-size: 1.4rem; 
  padding: 0.5em 0;
}

section {
  padding: 4rem 3rem;
}


h1, h2, h3 {
  margin-bottom: 1rem;
  font-weight: normal;
}



#home {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;

  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("images/casa.jpeg");

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed; 
  padding: 6rem 3rem;
}

.hero-content {
  max-width: 800px; 
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}


#services,
#access {
  background: var(--soft);
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}


.card {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 6px;
}


form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}


.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--soft);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
}


footer {
  background: var(--primary);
  color: var(--soft);
  text-align: center;
  padding: 2rem;
}
.footer-logo {
  display: block;          /* Permite centrarlo horizontalmente */
  margin: 0.5rem auto 0;   /* Espacio arriba, centrado horizontal */
  max-width: 100px;        /* Ajusta tamaño del logo */
  height: auto;            /* Mantiene proporción */
}
table {
margin: auto;
border: 1px solid #97b89f;  
width: 90%;
border-collapse: collapse;
}
td, 
th {
       padding: 5px;
       border: 1px solid #97b89f;
}
td{
   text-align: center;    
}
.text {
       text-align: left;
}
tr:nth-of-type(even) {background-color: #dfedf8;}




@media (min-width: 600px) {
  section {
    padding: 4rem 4rem;
  }

  nav ul {
    justify-content: center;
    gap: 2rem;
  }

  .grid {
    gap: 2.5rem;
  }

  h1 {
    font-size: 2em;
    letter-spacing: 0.2em;
  }
}


@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
    margin: auto;
  }

  section {
    padding: 6rem 6rem;
  }

  nav ul {
    gap: 3rem;
    padding-top: 2.5em;
    padding-bottom: 2.5em;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
  }

  #home {
    padding: 8rem 6rem;
  }

  h1 {
    font-size: 2.5em;
  }
  
.image-section {
  margin: 3rem 0;
  text-align: center;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}


@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

}


section h2 {
  font-size: 2rem; 
  margin-bottom: 1.5rem;
}

section p {
  font-size: 1.2rem; 
  line-height: 1.8;
  text-align: justify;
}



.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--soft);
  cursor: pointer;
}


@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-right: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 1rem;
    padding-top: 1rem;
  }

  nav ul.show {
    display: flex;
  }
}



.image-section {
  margin: 2.5rem 0;
  text-align: center;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


.card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  #home {
    background-attachment: scroll;
    background-size: cover;
  }
}


@media (min-width: 768px) {
  section h2 {
    font-size: 2.4rem;
  }

  section p {
    font-size: 1.3rem;
  }
}

@media (min-width: 1024px) {
  section h2 {
    font-size: 2.8rem;
  }

  section p {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .footer-logo {
    max-width: 70px;}}