:root{
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --text: #111111;
  --text-soft: #444444;
  --border: #111111;
  --card-bg: #ffffff;
  --header-bg: rgba(255,255,255,0.95);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

[data-theme="dark"]{
  --bg: #0c0c0c;
  --bg-alt: #161616;
  --text: #f5f5f5;
  --text-soft: #b8b8b8;
  --border: #f5f5f5;
  --card-bg: #1a1a1a;
  --header-bg: rgba(12,12,12,0.95);
  --shadow: 0 4px 16px rgba(255,255,255,0.06);
}

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

html{ scroll-behavior: smooth; }

body{
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

.container{
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 24px;
  max-width: 1150px;
  margin: 0 auto;
}

.brand{
  display: inline-block;
  line-height: 0;
}

.brand .logo{
  height: 34px;
  width: auto;
  display: block;
}

.brand .logo-dark{ display: none; }

[data-theme="dark"] .brand .logo-light{ display: none; }
[data-theme="dark"] .brand .logo-dark{ display: block; }

nav ul{
  display:flex;
  gap: 32px;
}

nav a{
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

nav a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--text);
  transition: width 0.25s ease;
}

nav a:hover::after{ width:100%; }

.nav-actions{
  display:flex;
  align-items:center;
  gap: 14px;
}

#theme-toggle{
  cursor:pointer;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

#theme-toggle:hover{
  background: var(--text);
  color: var(--bg);
  transform: rotate(20deg);
}

.menu-btn{
  display:none;
  background:none;
  border:none;
  color:var(--text);
  font-size: 1.6rem;
  cursor:pointer;
}

/* HERO */
.hero{
  padding: 100px 24px 80px;
  text-align:center;
  border-bottom: 1px solid var(--border);
}

.hero h1{
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left:auto; margin-right:auto;
}

.hero p{
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.hero-actions{
  display:flex;
  gap: 16px;
  justify-content:center;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--text);
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-solid{
  background: var(--text);
  color: var(--bg);
}

.btn-solid:hover{
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-outline{
  background: transparent;
  color: var(--text);
}

.btn-outline:hover{
  background: var(--text);
  color: var(--bg);
}

/* SECTIONS */
section{ padding: 80px 0; }

.section-title{
  text-align:center;
  margin-bottom: 50px;
}

.section-title span{
  display:inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.section-title h2{
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
}

/* SERVICES GRID */
.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-icon{
  width: 52px;
  height: 52px;
  border: 2px solid var(--text);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3{
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.service-card p{
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* CAROUSEL */
.carousel{
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.carousel-track{
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide{
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}

.carousel-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--header-bg);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover{
  background: var(--text);
  color: var(--bg);
}

.carousel-btn.prev{ left: 16px; }
.carousel-btn.next{ right: 16px; }

.carousel-dots{
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  background: var(--text);
  opacity: 0.4;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active{
  opacity: 1;
  transform: scale(1.25);
}

/* WHY US */
.why-section{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align:center;
}

.why-grid .num{
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.why-grid .label{
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* CONTACT */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 24px;
}

.contact-item{
  display:flex;
  gap: 16px;
  align-items:flex-start;
}

.contact-item .icon{
  width: 44px;
  height: 44px;
  flex-shrink:0;
  border: 2px solid var(--text);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.2rem;
}

.contact-item h4{
  font-weight: 800;
  margin-bottom: 4px;
}

.contact-item p{ color: var(--text-soft); font-size: 0.95rem; }

.map-wrap{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  min-height: 340px;
}

.map-wrap iframe{
  width:100%;
  height:100%;
  min-height: 340px;
  border:0;
  filter: grayscale(1) contrast(1.1);
}

[data-theme="dark"] .map-wrap iframe{
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float{
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover{ transform: scale(1.08); }

.whatsapp-float svg{ width: 30px; height: 30px; }

/* FOOTER */
footer{
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align:center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

footer .brand{
  display:inline-block;
  margin-bottom: 12px;
}

footer .brand .logo{
  height: 28px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  nav ul{
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav ul.open{ max-height: 300px; }
  nav ul li{
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .menu-btn{ display:block; }
}

@media (max-width: 720px){
  .carousel-btn{ width: 36px; height: 36px; font-size: 1.2rem; }
}
