/* iSUN · Sunset Coral (patched) */
:root {
  --primary: #FB7185;
  --secondary: #1E293B;
  --accent: #FBBF24;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --text: #0F172A;
  --hero-overlay: rgba(0,0,0,.35);
  --shadow: 0 2px 8px rgba(0,0,0,.1);
}
* { box-sizing: border-box; }
body { margin:0; font-family: "Segoe UI", Tahoma, sans-serif; background: var(--bg); color: var(--text); scroll-behavior:smooth; }
header {
  background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--primary), white 20%));
  color:#fff; padding:1rem 2rem; display:flex; justify-content:space-between; align-items:center;
  position:sticky; top:0; z-index:1000; box-shadow:0 2px 5px rgba(0,0,0,.2);
}
.logo-container { display:flex; align-items:center; gap:.75rem; }
.logo { height:44px; }
nav a { color:white; margin:0 1rem; text-decoration:none; font-weight:500; }
nav a:hover { text-decoration: underline; }
.menu { display:none; background:transparent; border:0; color:white; font-size:1.4rem; }
.hero {
  position:relative; text-align:center; padding:8rem 2rem; color:white;
  background:url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1500&q=80") center/cover;
}
.overlay { position:absolute; inset:0; background: var(--hero-overlay); }
.hero-content { position:relative; z-index:2; }
.hero h2 { font-size:2.6rem; margin-bottom:1rem; }
.hero p { max-width:620px; margin:0 auto 2rem; font-size:1.1rem; }
.hero button { background: var(--primary); color:white; border:0; padding: 1rem 2rem; border-radius: 8px; cursor:pointer; }
.hero button:hover { filter: brightness(1.05); }
.section { padding:4rem 2rem; max-width:1000px; margin:auto; text-align:center; }
.section h3 { font-size:2rem; color: var(--secondary); margin-bottom:2rem; }
.services { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px,1fr)); gap:1.5rem; }
.service-card { background: var(--surface); border-radius:12px; padding:2rem; box-shadow: var(--shadow); transition:.3s; }
.service-card:hover { transform: translateY(-4px); }
.service-card h4 { color: var(--primary); margin-top:0; }
.projects { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:1.5rem; }
.project-card { background: var(--surface); border-radius:12px; overflow:hidden; box-shadow: var(--shadow); transition:.3s; }
.project-card:hover { transform: scale(1.02); }
.project-card img { width:100%; height:180px; object-fit:cover; }
.project-info { padding: 1rem; }
form { display:flex; flex-direction:column; max-width:520px; margin:auto; }
input, textarea { margin-bottom:1rem; padding:.9rem; border:1px solid #cbd5e1; border-radius:10px; font-size:1rem; background:white; color:var(--text);}
button[type="submit"] { background: var(--primary); color:white; border:0; padding:1rem; border-radius:10px; cursor:pointer; }
button[type="submit"]:hover { filter: brightness(1.05); }
#resultado { margin-top:1rem; color:#059669; font-weight:600; }
footer { background: var(--secondary); color:white; text-align:center; padding:2rem 1rem; margin-top:3rem; }
footer a { color: var(--accent); }
.fade-in { opacity:0; transform: translateY(20px); animation: fadeInUp .8s forwards; }
@keyframes fadeInUp { to { opacity:1; transform: translateY(0); } }
@media (max-width:860px) {
  nav { display:none; position:absolute; right:1rem; top:64px; background: var(--secondary); padding: .75rem 1rem; border-radius: 12px; }
  nav a { display:block; margin:.5rem 0; }
  .menu { display:block; }
}
