/* Reset básico y configuración global */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f2f5; /* Gris muy suave, moderno */
  color: #333;
  line-height: 1.6;
}

/* --- Header y Navegación --- */
.header {
  background: #1f3d2b; /* Tu verde oscuro original */
  color: white;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: white;
}

.logo-container img {
  height: 60px; /* Logo más discreto y profesional */
  width: auto;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-text h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ccc;
}
.social-bar {
  display: flex;
  align-items: center;
  gap: 20px; /* Espacio entre el teléfono y el Instagram */
  margin-top: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f1f1;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-item img, .social-link img {
  height: 28px; /* Tamaño controlado de los íconos */
  width: auto;
  transition: transform 0.2s;
}

.social-link img:hover {
  transform: scale(1.1); /* Efecto zoom al pasar el mouse */
}

/* Navegación estilo barra */
nav {
  display: flex;
  gap: 5px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
  font-size: 0.95rem;
}

nav a:hover {
  background-color: #3a7652;
}

/* --- Sección Detalle (Hero/Banner) --- */
.detalle {
  background: linear-gradient(135deg, #3a7652 0%, #2c5e40 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.detalle-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.detalle p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.detalle strong {
  font-size: 1.1rem;
  color: #ffeb3b; /* Amarillo suave para resaltar */
}

/* --- Contenedor Principal --- */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 60vh;
}

h2 {
  border-bottom: 3px solid #f39c12; /* Línea de acento estilo construcción */
  padding-bottom: 10px;
  margin-bottom: 30px;
  color: #1f3d2b;
  display: inline-block;
}

/* --- Formularios Profesionales --- */
.form-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto; /* Centrado */
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

input[type="text"],
input[type="email"],
textarea,
select,
input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: #fafafa;
}

input:focus, textarea:focus, select:focus {
  border-color: #3a7652;
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(58, 118, 82, 0.1);
}

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

/* Botones estilo "Call to Action" */
button, .btn {
  background-color: #f39c12; /* Naranja/Amarillo construcción */
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
}

button:hover, .btn:hover {
  background-color: #e67e22;
}

button:active {
  transform: scale(0.98);
}

.btn-danger {
  background-color: #e74c3c;
  margin-left: 10px;
}
.btn-danger:hover { background-color: #c0392b; }

.btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* --- Portafolio (Grilla) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.project-media {
  width: 100%;
  height: 220px; /* Altura fija para uniformidad */
  background-color: #eee;
  overflow: hidden;
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-top: 0;
  color: #1f3d2b;
  font-size: 1.25rem;
}

.project-info p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.admin-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* --- Footer --- */
.footer {
  background: #1c1c1c;
  color: #888;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  font-size: 0.9rem;
}

/* Responsividad básica */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-container {
    margin-bottom: 20px;
    flex-direction: column;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .detalle-content {
    grid-template-columns: 1fr;
  }
}