/* Atlas updated styles - using logo colors */
:root{
  --logo-bg: #5e674a;    /* verde del logo */
  --logo-title: #aeb79a; /* color de letras del logo */
  --body-bg: #f5f7fa;
}

*{box-sizing:border-box}
body{font-family: 'Nunito', Arial, sans-serif; margin:0; color:black; background:var(--body-bg); line-height:1.5}
.container{max-width:1100px;margin:0 auto;padding:0.1rem}

/* header */
.site-header{position:fixed;top:0;left:0;right:0;background:rgba(255,255,255,0.95);backdrop-filter: blur(6px);box-shadow:0 2px 8px rgba(0,0,0,0.06);z-index:9999}
.navbar{display:flex;align-items:center;gap:1rem;padding:0.75rem 1rem;max-width:1100px;margin:0 auto}
.logo{height:96px;width:auto;border-radius: 50%;object-fit:cover;}
.nav-links{margin-left:auto;display:flex;gap:0.5rem;align-items:center}
.nav-links a{color:var(--logo-title);text-decoration:none;padding:10px 14px;border-radius:8px;font-weight:700;transition:all .25s}
.nav-links a.active, .nav-links a:hover{background:transparent;transform:translateY(-3px)}

/* mobile menu */
.menu-icon{display:none;background:none;border:0;font-size:28px;cursor:pointer;color:var(--logo-title)}
@media(max-width:768px){
  .menu-icon{display:block}
  .nav-links{position:absolute;top:72px;right:12px;background:white;flex-direction:column;padding:8px;border-radius:8px;display:none;box-shadow:0 6px 20px rgba(0,0,0,0.12)}
  .nav-links.show{display:flex;width:200px}
  .nav-links a{padding:10px; color:var(--logo-bg)}
}

/* panels */
.panel{min-height:100vh;padding:110px 0 80px}
.section-green{background:var(--logo-bg);}
.section-beige{background:var(--logo-title);}
.section-title{color:var(--logo-title); margin-bottom:1rem}
.section-beige .section-title{color:var(--logo-bg);}

/* ensure internal text is black */
.panel p, .panel li, .panel a, .panel h3, .panel h2, .panel h1 { color: black; }

/* hero */
.hero{display:flex;align-items:center;background:linear-gradient(180deg, white 0%, #f7f8fb 100%)}
.hero-inner{display:flex;align-items:center;gap:2rem;padding:2rem;flex-wrap:wrap}
.hero h1{font-size:2.4rem;margin:0}
.hero p{max-width:520px;color:#334155}

/* services */
.services-list{columns:2;gap:1.5rem}
@media(max-width:800px){.services-list{columns:1}}

/* team */
.team-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr); /* 2 por fila */
  gap:3rem;
  margin-top:0.3rem;
}
@media (max-width: 900px) {
  .team-grid{
    grid-template-columns:1fr; /* 1 por fila */
  }
}
.team-card{background:white;padding:1rem;border-radius:10px;box-shadow:0 6px 20px rgba(10,37,64,0.06)}
.team-card img{width:100%;height:160px;object-fit:cover;border-radius:6px}

/* contact */
.contact-card{background:white;padding:2rem;border-radius:10px;box-shadow:0 6px 20px rgba(10,37,64,0.06)}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.contact-form input,.contact-form textarea{padding:0.8rem;border:1px solid #e6e9ef;border-radius:8px;width:100%}
.contact-form textarea{grid-column:1 / -1;min-height:220px}
.btn{background:var(--logo-title);color:var(--logo-bg);padding:0.8rem 1rem;border-radius:8px;border:0;cursor:pointer}
@media(max-width:800px){.contact-form{grid-template-columns:1fr} .hero-inner{flex-direction:column}}

/* footer */
.site-footer{padding: 0.1rem 0.2rem;text-align:center;color:#55606b;}

/* small helpers */
a{color:var(--logo-title)}

.hero-center{
  min-height: calc(100vh - 120px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.hero-logo{
  width:280px;
  max-width:80%;
  margin-bottom:2rem;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title{
  font-size:2.8rem;
  font-weight:700;
  margin-bottom:1rem;
  color: var(--logo-title);
}

.hero-subtitle{
  font-size:1.3rem;
  max-width:600px;
  color:white;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:2rem;
  margin-top:3rem;
}

.service-card{
  background:white;
  padding:2rem;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  transition:transform .3s, box-shadow .3s;
}

.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,0.18);
}

.service-card h3{
  font-size:1.4rem;
  margin-bottom:0.8rem;
  color:var(--logo-bg);
}

.service-card p{
  font-size:1rem;
  line-height:1.6;
}

/* Layout */
.company-layout{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:4rem;
  align-items:center;
}

/* Texto */
.company-text{
  font-size:1.1rem;
  line-height:1.75;
  margin-bottom:1.4rem;
  color:#222;
}

.company-text strong{
  color:var(--logo-bg);
}

/* Boxes */
.company-right{
  display:grid;
  gap:1.4rem;
}

.value-box{
  background:white;
  padding:1.8rem;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
  border-left:5px solid var(--logo-bg);
}

.value-number{
  font-size:0.8rem;
  letter-spacing:2px;
  font-weight:700;
  color:var(--logo-bg);
}

.value-box h4{
  font-size:1.2rem;
  margin:0.5rem 0 0.6rem;
  color:#111;
}

.value-box p{
  font-size:0.95rem;
  line-height:1.6;
  color:#444;
}
.panel{
  padding-top:110px;
  padding-bottom:110px;
}

.section-title{
  font-size:2.4rem;
  font-weight:700;
  text-align:center;
}

.newsletter{
  max-width:340px;
}

.newsletter h4{
  font-size:1rem;
  margin-bottom:0.2rem;
  color:#6f7a3a;
  font-weight:700;
}

.newsletter p{
  font-size:0.8rem;
  margin-bottom:0.4rem;
  color:#6f7a3a;
}

/* Formulario compacto */
.newsletter-form{
  display:flex;
  gap:0.4rem;
}

.newsletter-form input{
  padding:0.35rem 0.6rem;
  border-radius:5px;
  border:1px solid #ccc;
  font-size:0.85rem;
  height:32px;
}

.newsletter-form button{
  padding:0 0.9rem;
  font-size:0.85rem;
  height:32px;
  border-radius:5px;
}

.team-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr); /* 2 por fila */
  gap:3rem;
  margin-top:0.3rem;
}

/* Card base */
.team-card{
  background:white;
  padding:0.5rem;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  transition:transform .3s ease, box-shadow .3s ease;
}

/* Hover igual a servicios */
.team-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,0.2);
}
.team-card h3{
  font-size:1.25rem;
  margin-bottom:0.2rem;
  color:#6f7a3a;
}

.team-card p{
  font-size:0.95rem;
  line-height:1.6;
  color:#333;
  margin-bottom:0.2rem;
}

.team-card p:last-child{
  margin-bottom:0;
}

#staff .section-title {
  color:#000;
}

#inicio.hero {
  position: relative;
  overflow: hidden;
}

#inicio.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/atlas5.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

#inicio.hero > * {
  position: relative;
  z-index: 1;
}

.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/atlas4.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}