:root {
  /* Colores principales */
  --color-fondo: #121212;           /* negro oscuro */
  --color-texto: #ffffff;           /* blanco */
  
  /* Colores de detalle */
  --color-detalle: #ff6600;         /* naranja */
  --color-detalle-hover: #ff8533;   /* naranja claro */
  
  /* Botón */
  --color-boton-fondo: var(--color-detalle);
  --color-boton-fondo-hover: var(--color-detalle-hover);
  --color-boton-texto: var(--color-texto);
  --sombra-boton: rgba(255, 102, 0, 0.4);
  --sombra-boton-hover: rgba(255, 133, 51, 0.6);
  
  /* Bordes y sombras */
  --color-borde: #444444;
  --color-borde-focus: var(--color-detalle);
  --sombra-foco: 0 0 5px var(--color-detalle);
  
  /* Inputs */
  --color-input-fondo: #1e1e1e;
  --color-placeholder: #bbbbbb;
}

body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#matrix {
    position: fixed;
    color: #12a916;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

main {
  position: fixed;
  width: 100%;
  height: 90%;
}

footer {
  width: 100%;
  min-height: 10%;
  height: fit-content;
  bottom: 0px;
  position: fixed;
}

a:link {
  color: #2e8b57; /* Sea Green - estado normal */
  text-decoration: none;
  font-weight: bold;
}

a:visited {
  color: #3cb371; /* Medium Sea Green - ya visitado */
}

a:hover {
  color: #228b22; /* Forest Green - al pasar el ratón */
  text-decoration: underline;
}

a:active {
  color: #006400; /* Dark Green - al hacer clic */
}

/* anuncios */
/* Estilos para el anuncio de desarrollo web */
header article {
  background: transparent;
  color: var(--color-texto);
  text-align: center;
  padding: 30px 20px;
  border-bottom: 2px solid var(--color-detalle);
}

header article h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--color-texto);
}

.price-tag {
  background: var(--color-detalle);
  color: var(--color-texto);
  font-size: 1.8rem;
  font-weight: bold;
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  margin: 15px 0;
  box-shadow: 0 5px 15px var(--sombra-boton);
}

header article p:last-child {
  font-size: 1.1rem;
  margin-top: 15px;
  color: var(--color-texto);
}

/* Estilos para el formulario de servicios */
.services-container {
  background: var(--color-input-fondo);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--color-borde);
}

.services-container h2 {
  color: var(--color-detalle);
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: #1a1a1a;
  border-left: 4px solid var(--color-detalle);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card h2 {
  color: var(--color-detalle);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.service-card h3 {
  color: var(--color-detalle);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  color: #cccccc;
  line-height: 1.5;
}

/* Sección destacada */
.highlight {
  background: linear-gradient(to right, #2c2c2c, #1e1e1e);
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
  border: 2px dashed var(--color-detalle);
  text-align: center;
}

.highlight h2 {
  color: var(--color-texto);
  margin-bottom: 15px;
}

.highlight p {
  color: #cccccc;
  font-size: 1.1rem;
}

.highlight strong {
  color: var(--color-detalle);
}

/* Programming Langs */
.programlangs {
  background: var(--color-input-fondo);
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid var(--color-borde);
}

div.programlangs:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0.2);
}

.programlangs h2 {
  color: var(--color-detalle);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.programlangs {
  padding: 20px;
  margin: 20px 0;
  background: #1a1a1a;
  border-radius: 8px;
  border-left: 4px solid #2e8b57;
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
}

.programlangs p:first-child {
  font-style: italic;
  color: #cccccc;
  margin-bottom: 10px;
  line-height: 1.6;
}

.programlangs p strong {
  color: var(--color-texto);
}

/* Data Systems*/
.datasystems {
  background: var(--color-input-fondo);
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid var(--color-borde);
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
}

div.datasystems:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0.2);
}

.datasystems h2 {
  color: var(--color-detalle);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.datasystems {
  padding: 20px;
  margin: 20px 0;
  background: #1a1a1a;
  border-radius: 8px;
  border-left: 4px solid #2e24eF;
}

.datasystems p:first-child {
  font-style: italic;
  color: #cccccc;
  margin-bottom: 10px;
  line-height: 1.6;
}

.datasystems p strong {
  color: var(--color-texto);
}

/* Clean Code */
.cleancode {
  background: var(--color-input-fondo);
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid var(--color-borde);
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
}

div.cleancode:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0.2);
}

.cleancode h2 {
  color: var(--color-detalle);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.cleancode {
  padding: 20px;
  margin: 20px 0;
  background: #1a1a1a;
  border-radius: 8px;
  border-left: 4px solid #fe24eF;
}

.cleancode p:first-child {
  font-style: italic;
  color: #cccccc;
  margin-bottom: 10px;
  line-height: 1.6;
}

.cleancode p strong {
  color: var(--color-texto);
}

/* Llamada a la acción */
.cta {
  text-align: center;
  margin: 40px 0;
}

.cta h2 {
  color: var(--color-texto);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.cta p {
  color: #cccccc;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.cta-btn {
  display: inline-block;
  background: var(--color-boton-fondo);
  color: var(--color-boton-texto);
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--sombra-boton);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--color-boton-fondo-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--sombra-boton-hover);
}

/* Información de contacto */
.contact h2 {
  color: var(--color-detalle);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.contact-info {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #4299e1;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.contact-detail {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-highlight {
    color: #2b6cb0;
    font-weight: 600;
    background: #ebf8ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.contact-response {
    color: #38a169;
    font-weight: 600;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f0fff4;
    border-radius: 6px;
    border-left: 3px solid #38a169;
}

.contact-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px dashed #cbd5e0;
    color: #718096;
    font-size: 0.9rem;
    text-align: center;
}

/* Efectos hover para interactividad */
.contact-detail:hover {
    background: #f7fafc;
    transition: background-color 0.3s ease;
}

.contact-highlight:hover {
    background: #bee3f8;
    transition: all 0.3s ease;
}

/* Responsive */
.hover-sweep {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hover-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.hover-sweep:hover::before {
    left: 100%;
}