/* ══════════════════════════════════════════
   ABASTO STUDIOS — style.css
   ══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0b0d;
  color: white;
}

h1 {
  font-size: 80px;
  font-weight: bold;
  line-height: 1.2;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  backdrop-filter: blur(8px);
}

.logo-img {
  height: 95px;
  width: 95px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #aaa;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #2a4a5e, #c4704a);
  transition: width 0.3s;
}

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

/* ── Hero ── */
.hero {
  padding-top: 120px;
  text-align: center;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-image: url("Pictures/Screenshots/micr.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero h1 {
  animation: fadeSlideDown 1s ease forwards;
  opacity: 0;
}

.hero p {
  animation: fadeSlideDown 1s ease 0.3s forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeSlideDown 1s ease 0.6s forwards;
  opacity: 0;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, #0b0b0d);
  pointer-events: none;
  z-index: 0;
}

.hero h1, .hero p, .hero .btn {
  position: relative;
  z-index: 1;
}

/* ── Botón ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg, #2a4a5e, #c4704a);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(42, 74, 94, 0.6);
}

/* ── Secciones ── */
section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  margin-bottom: 20px;
  font-size: 36px;
  background: linear-gradient(90deg, #2a4a5e, #c4704a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Servicios ── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #0f0f11;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: #2a4a5e;
  box-shadow: 0 8px 30px rgba(42, 74, 94, 0.35);
}

.card h3 { margin-top: 0; }
.card p  { color: #9aa0a6; font-size: 14px; }

/* ── Proyectos ── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  text-align: center;
  transition: transform 0.3s;
}

.project-card:hover { transform: translateY(-8px); }

.project-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #2a4a5e, #c4704a);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.project-card:hover .project-image {
  box-shadow: 0 8px 25px rgba(196, 112, 74, 0.4);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .project-image img { transform: scale(1.08); }

.project-title { margin-top: 10px; font-weight: bold; }

/* ── Formulario ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}

.type-selector {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  max-width: 500px;
  margin-bottom: 20px;
}

.type-btn {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: #9aa0a6;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.type-btn.active {
  background: linear-gradient(90deg, #2a4a5e, #c4704a);
  color: white;
}

.type-btn:first-child { border-right: 1px solid #333; }

input, textarea, select {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

select {
  appearance: none;
  cursor: pointer;
}

select option {
  background: #1a1a1c;
  color: white;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2a4a5e;
  box-shadow: 0 0 10px rgba(42, 74, 94, 0.3);
}

textarea { min-height: 120px; resize: vertical; }

.field-rol { display: none; }
.field-rol.visible { display: block; }

/* ── Mensaje de éxito ── */
.success-msg {
  display: none;
  padding: 20px 25px;
  background: rgba(42, 74, 94, 0.15);
  border: 1px solid #2a4a5e;
  border-radius: 8px;
  color: #cde;
  font-size: 15px;
  max-width: 500px;
}

.success-msg span:first-child {
  font-size: 1.4rem;
  margin-right: 8px;
}

/* ── Redes sociales ── */
.socials {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.socials a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s, filter 0.3s;
}

.socials a img:hover {
  transform: scale(1.3) translateY(-4px);
  filter: drop-shadow(0 4px 8px rgba(42, 74, 94, 0.6));
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 30px;
  color: #9aa0a6;
}

/* ── Animaciones scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.15s; }
.fade-in:nth-child(3) { transition-delay: 0.30s; }
.fade-in:nth-child(4) { transition-delay: 0.45s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 15px 20px; }
  h1 { font-size: 32px; }
  .logo-img { height: 45px; width: 45px; }
  section { padding: 60px 20px; }
}
