/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Press Start 2P", monospace;
  background: linear-gradient(to bottom, #87ceeb, #87ceeb, #98fb98);

  cursor: url("../public/block32.png") 0 0, url("../public/block.png") 0 0, auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Minecraft Block Styles */
.minecraft-block {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  box-shadow: inset -2px -2px 0px rgba(0, 0, 0, 0.3),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3);
  position: absolute;
  border-radius: 0;
}

.minecraft-panel {
  image-rendering: pixelated;
  box-shadow: inset -4px -4px 0px rgba(0, 0, 0, 0.4),
    inset 4px 4px 0px rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

.minecraft-button {
  font-family: "Press Start 2P", monospace;
  image-rendering: pixelated;
  border-radius: 0;
  box-shadow: inset -2px -2px 0px rgba(0, 0, 0, 0.4),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3);
  transition: all 0.1s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.minecraft-button:hover {
  box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.4),
    inset 1px 1px 0px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.minecraft-input {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  image-rendering: pixelated;
  border-radius: 0;
  box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.3),
    inset -2px -2px 0px rgba(255, 255, 255, 0.1);
  border: 2px solid #4a5568;
  background: #4a5568;
  color: white;
  padding: 12px;
  width: 100%;
}

.minecraft-input:focus {
  outline: none;
  box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.3),
    inset -2px -2px 0px rgba(255, 255, 255, 0.1), 0 0 0 2px #ffd700;
}

/* Color Classes */
.bg-green-600 {
  background-color: #16a34a;
}
.bg-brown-600 {
  background-color: #92400e;
}
.bg-gray-500 {
  background-color: #6b7280;
}
.bg-blue-500 {
  background-color: #3b82f6;
}
.bg-yellow-600 {
  background-color: #ca8a04;
}
.bg-emerald-700 {
  background-color: #047857;
}
.bg-lime-600 {
  background-color: #65a30d;
}
.bg-brown-800 {
  background-color: #451a03;
}
.bg-green-800 {
  background-color: #166534;
}
.bg-red-600 {
  background-color: #dc2626;
}
.bg-purple-600 {
  background-color: #9333ea;
}
.bg-blue-600 {
  background-color: #2563eb;
}
.bg-orange-600 {
  background-color: #ea580c;
}
.bg-gray-800 {
  background-color: #1f2937;
}

.border-brown-800 {
  border-color: #451a03;
}
.border-green-800 {
  border-color: #166534;
}
.border-brown-900 {
  border-color: #1c0701;
}
.border-green-900 {
  border-color: #14532d;
}
.border-blue-800 {
  border-color: #1e40af;
}
.border-purple-800 {
  border-color: #6b21a8;
}
.border-orange-800 {
  border-color: #9a3412;
}
.border-red-800 {
  border-color: #991b1b;
}
.border-gray-900 {
  border-color: #111827;
}

.text-yellow-400 {
  color: #facc15;
}
.text-lime-400 {
  color: #a3e635;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: url("/espada.png") 0 0;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.block-1 {
  top: 80px;
  left: 40px;
  width: 64px;
  height: 64px;
  animation: float 4s ease-in-out infinite;
}
.block-2 {
  top: 160px;
  right: 80px;
  width: 48px;
  height: 48px;
  animation: float 4s ease-in-out infinite 1s;
}
.block-3 {
  bottom: 160px;
  left: 80px;
  width: 80px;
  height: 80px;
  animation: float 4s ease-in-out infinite 2s;
}
.block-4 {
  top: 240px;
  left: 33%;
  width: 56px;
  height: 56px;
  animation: float 4s ease-in-out infinite 0.5s;
}
.block-5 {
  bottom: 240px;
  right: 33%;
  width: 72px;
  height: 72px;
  animation: float 4s ease-in-out infinite 1.5s;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 24px;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 32px;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeIn 1s ease-out 0.6s both;
}

.btn-primary {
  background-color: #16a34a;
  color: white;
  padding: 16px 32px;
  font-size: 16px;
  border: 4px solid #15803d;
}

.btn-secondary {
  background-color: #92400e;
  color: white;
  padding: 16px 32px;
  font-size: 16px;
  border: 4px solid #451a03;
}

.scroll-indicator {
  cursor: pointer;
  animation: bounce 2s infinite;
}

.arrow-down {
  font-size: 2rem;
  color: white;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #22c55e, #16a34a);
  position: relative;
  overflow: hidden;
}

.block-6 {
  top: 40px;
  right: 40px;
  width: 96px;
  height: 96px;
  animation: float 4s ease-in-out infinite 1s;
}
.block-7 {
  bottom: 80px;
  left: 40px;
  width: 64px;
  height: 64px;
  animation: float 4s ease-in-out infinite 2s;
}

.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 64px;
  z-index: 10;
}

.section-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 24px;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-out;
}

.section-divider {
  width: 128px;
  height: 8px;
  margin: 0 auto;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: white;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.about-card {
  padding: 32px;
  border: 4px solid;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-text {
  color: white;
  font-size: 16px;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.value-item {
  text-align: center;
}

.value-block {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  display: flex;
  align-items: flex-end; /* arranca desde abajo */
  justify-content: center;
  position: relative;
  overflow: hidden; /* oculta imagen al inicio */
  transition: overflow 0.6s ease;
}

.value-block img {
  width: 60%;
  height: auto;
  transform: translateY(60%) translateX(30%); /* arranca escondida */
  transition: all 0.7s ease;
}

.value-item:hover .value-block {
  overflow: visible; /* permite que la imagen salga */
}

.value-item:hover .value-block img {
  width: 90%;
  transform: scale(1.5);
  transform: translateY(-30%);
}

.value-title {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 8px;
}

.value-text {
  color: white;
  font-size: 14px;
}

/* Projects Section */
.projects-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #16a34a, #2563eb);
  position: relative;
  overflow: hidden;
}

.block-8 {
  top: 80px;
  left: 80px;
  width: 128px;
  height: 128px;
  animation: float 4s ease-in-out infinite;
}
.block-9 {
  bottom: 160px;
  right: 80px;
  width: 80px;
  height: 80px;
  animation: float 4s ease-in-out infinite 1.5s;
}
.block-10 {
  top: 50%;
  left: 40px;
  width: 64px;
  height: 64px;
  animation: float 4s ease-in-out infinite 3s;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.project-card {
  padding: 24px;
  border: 4px solid;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.project-description {
  color: white;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-tech {
  color: #facc15;
  font-size: 10px;
  margin-bottom: 16px;
}

.btn-white {
  background-color: white;
  color: #374151;
  padding: 12px 24px;
  font-size: 12px;
  border: 2px solid #9ca3af;
  width: 100%;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px;
}

.page-card {
  padding: 20px;
  border: 4px solid;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.page-title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.page-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.page-description {
  color: white;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.page-tech {
  color: #facc15;
  font-size: 12px;
  margin-bottom: 16px;
}

.btn-white {
  background-color: white;
  color: #374151;
  padding: 10px 16px;
  font-size: 13px;
  border: 2px solid #9ca3af;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-white:hover {
  background-color: #f3f4f6;
}

.section-footer {
  text-align: center;
}

.btn-primary-large {
  background-color: #ca8a04;
  color: white;
  padding: 16px 32px;
  font-size: 16px;
  border: 4px solid #92400e;
}

.pages-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #2563eb, #3f75eb);
  position: relative;
  overflow: hidden;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #3f75eb, #374151);
  position: relative;
  overflow: hidden;
}

.block-11 {
  top: 40px;
  right: 25%;
  width: 112px;
  height: 112px;
  animation: float 4s ease-in-out infinite 0.5s;
}
.block-12 {
  bottom: 80px;
  left: 25%;
  width: 64px;
  height: 64px;
  animation: float 4s ease-in-out infinite 2s;
}
.block-13 {
  top: 33%;
  right: 40px;
  width: 80px;
  height: 80px;
  animation: float 4s ease-in-out infinite 1s;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  padding: 32px;
  border: 4px solid;
  height: fit-content;
}

@media (width < 450px) {
  .contact-info,
  .contact-form {
    padding: 6px;
    border: 4px solid;
    height: fit-content;
  }
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.contact-label {
  color: white;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-value {
  color: #d1d5db;
  font-size: 12px;
}

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

.form-label {
  display: block;
  color: white;
  font-size: 14px;
  margin-bottom: 8px;
}

.textarea {
  min-height: 120px;
  resize: none;
}

.btn-success {
  background-color: #16a34a;
  color: white;
  padding: 12px 32px;
  font-size: 14px;
  border: 4px solid #15803d;
  width: 100%;
}

/* Footer */
.footer {
  background-color: #111827;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.bedrock-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.bedrock-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 100%;
}

.bedrock-block {
  background-color: #6b7280;
  border: 1px solid #4b5563;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 10;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-text {
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.5;
}

.footer-subtitle {
  font-size: 16px;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #facc15;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  color: #d1d5db;
  font-size: 12px;
  margin-bottom: 8px;
}

.social-blocks {
  display: flex;
  gap: 16px;
}

.social-block {
  width: 40px;
  height: 40px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.social-block:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 32px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 12px;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .minecraft-button {
    font-size: 12px;
    padding: 12px 24px;
  }

  .value-block img {
    width: 70%;
    transform: translateY(30%); /* se muestra más, menos escondida */
  }

  /* Opcional: desactivar hover en móvil */
  .value-item:hover .value-block img {
    transform: translateY(0) scale(1); /* nada loco en mobile */
  }
}
