/* Global styles for Armadillo Instantáneo corporate site */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Root variables for easy theme control */
:root {
  --color-primary: #A00000; /* Armadillo red accent */
  --color-text: #444444;   /* Dark gray for body text */
  --color-bg: #ffffff;     /* Pure white background */
  --color-light: #f6f6f6;  /* Light gray for alternating sections */
  --transition-fast: 0.2s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #730000;
}

/* Navigation bar */
header {
  background-color: var(--color-bg);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav li {
  margin-left: 1rem;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a.active,
nav a:hover {
  color: var(--color-primary);
}

/* Language toggler styles */
.lang-switch {
  cursor: pointer;
  margin-left: 0.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}
.lang-switch.active {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Responsive navigation (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--color-text);
  margin-bottom: 4px;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hide menu on small screens */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
    background: var(--color-bg);
    position: absolute;
    top: 60px;
    left: 0;
    border-top: 1px solid #eaeaea;
  }
  nav li {
    margin: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
  }
  nav li:last-child {
    border-bottom: none;
  }
  nav a {
    display: block;
    padding: 1rem;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f4f4f4;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: #730000;
}

/* Sections */
section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-align: center;
}

section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Grid layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.card img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th,
table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

table th {
  background: var(--color-light);
  font-family: 'Montserrat', sans-serif;
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

form label {
  font-weight: 600;
}

form input,
form select,
form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form button {
  align-self: flex-start;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Footer logo styling */
.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

/* Modal for project gallery */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  text-align: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
}

.modal-caption {
  color: #fff;
  margin-top: 1rem;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}