/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  line-height: 1.6;
  padding-bottom: 50px;
}

/* Header */
header {
  background-color: #1e1e1e;
  text-align: center;
  padding: 60px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

header h1 { font-size: 2.8em; margin-bottom: 10px; }
header h2 { font-size: 1.5em; color: #0077b6; margin-bottom: 20px; }
header p { max-width: 800px; margin: 0 auto 30px; font-size: 1.1em; color: #ccc; }

.cta {
  display: inline-block;
  background-color: #0077b6;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta:hover { background-color: #023e8a; transform: translateY(-2px); }

/* Section General */
section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
section h2 { text-align: center; font-size: 2.2em; margin-bottom: 40px; position: relative; }
section h2::after {
  content: ""; display: block; width: 60px; height: 3px; background-color: #0077b6;
  margin: 15px auto 0; border-radius: 2px;
}

/* About Me */
#About-Me p { text-align: justify; margin-bottom: 30px; font-size: 1.05em; }

.btn-cv {
  display: block; width: fit-content; margin: 0 auto;
  background-color: #0077b6; color: white; padding: 12px 25px;
  border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.3s;
}
.btn-cv:hover { background-color: #023e8a; }

/* Tools */
.icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; margin-top: 30px; }
.icons img { width: 70px; height: auto; border-radius: 8px; transition: 0.3s; }
.icons img:hover { transform: translateY(-10px); }

/* Dashboards & Video */
.dashboard-section, #video-cv { text-align: center; }
.dashboard-section iframe, #video-cv iframe {
  width: 100%; max-width: 900px; height: 500px;
  border-radius: 12px; border: 1px solid #333; margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* LA CORRECCIÓN DE TECNOMAXX */
#dashboard-tecnomaxx .project-card {
  max-width: 800px; margin: 0 auto; background-color: #1e1e1e;
  padding: 40px; border-radius: 15px; border: 1px solid #0077b6;
  box-shadow: 0 0 20px rgba(0, 119, 182, 0.2);
}

/* Projects Grid */
.projects-container {
  display: flex; flex-direction: column; gap: 40px; align-items: center;
}
.project-row {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; width: 100%;
}
.project-card {
  flex: 0 1 320px; background-color: #1e1e1e; border-radius: 12px;
  overflow: hidden; transition: 0.3s; border: 1px solid #333;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-10px); border-color: #0077b6; }
.project-card img { width: 100%; height: 200px; object-fit: cover; }
.project-card h3 { padding: 15px; font-size: 1.2em; text-align: center; }
.project-card p { padding: 0 15px 20px; font-size: 0.95em; color: #ccc; flex-grow: 1; }

/* Stats & Contact */
.stats-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.stats-grid img { max-width: 320px; border-radius: 8px; }

#contact { background-color: #1e1e1e; padding: 40px; border-radius: 15px; max-width: 600px; }
#contact form { display: flex; flex-direction: column; gap: 15px; }
#contact input, #contact textarea {
  padding: 12px; border-radius: 6px; border: 1px solid #333;
  background-color: #121212; color: white;
}

@media (max-width: 768px) {
  .dashboard-section iframe, #video-cv iframe { height: 300px; }
  header h1 { font-size: 2em; }
}