/* styles.css */

:root {
  --primary: #1f3a5f;
  --accent: #ff9900;
  --light: #f8f8f8;
  --dark: #111;
  --gray: #666;
  --font: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  background: var(--light);
  color: var(--dark);
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  margin-bottom: 0.5em;
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2em 0;
}

/* NAV */
.navbar {
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* HERO */
.hero {
  background: url('assets/img/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6em 2em;
}
.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  animation: fadeInUp 1s ease-out;
}
.cta-btn {
  background: var(--accent);
  padding: 0.8em 1.5em;
  border: none;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.cta-btn:hover {
  background: #cc7a00;
}

/* ABOUT */
.about p, .about h3 {
  margin-bottom: 1em;
}
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 2em;
}
.columns > div {
  flex: 1 1 30%;
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.columns > div:hover {
  transform: translateY(-5px);
}

/* SERVICES */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: scale(1.03);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  padding: 1em 1em 0;
}
.card p {
  padding: 0 1em 1em;
  color: var(--gray);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin-top: 2em;
}
.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* TESTIMONIOS */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 2em;
  justify-content: center;
}
.testimonial {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1em;
}
.testimonial h4 {
  margin-top: 0.5em;
  color: var(--primary);
}

/* CONTACT */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}
.contact input, .contact textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font);
}
.contact button {
  padding: 0.8em;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact button:hover {
  background: #163052;
}
.form-message {
  margin-top: 1em;
  color: green;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 2em 1em;
  text-align: center;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
  gap: 2em;
}
.footer-grid div {
  flex: 1 1 200px;
}
footer a {
  color: #fff;
  text-decoration: underline;
}
.legal {
  margin-top: 2em;
  font-size: 0.9em;
  color: #ccc;
}

/* ANIMACIONES */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.8em;
  }
  .columns {
    flex-direction: column;
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}
