body {
  margin: 0;
  font-family: "Courier New", monospace;
  background: #000;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CRT effect */
body::before {
  content: "";
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1000;
}

header {
  padding: 20px;
  border-bottom: 2px solid red;
  background: #111;
}

header h1 {
  color: red;
  font-size: 2.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px red;
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

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

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: red;
  text-shadow: 0 0 5px red;
}

section {
  padding: 60px 20px;
  border-bottom: 1px solid #222;
}

h2 {
  color: red;
  font-size: 2em;
  margin-bottom: 20px;
  text-shadow: 0 0 10px red;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 10px 0;
  font-size: 1.2em;
  color: #eee;
}

/* About */

.about-card {
    background: #111;
    border: 2px solid red;
    padding: 30px;
    max-width: 900px;
    margin: auto;
    text-align: left;
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
    font-family: "Courier New", monospace;
    line-height: 1.6em;
    animation: flicker 3s infinite alternate;
}

    .about-card p {
        margin-bottom: 15px;
        font-size: 1.1em;
        color: #ddd;
    }

    .about-card ul {
        list-style: none;
        padding-left: 0;
        margin-top: 10px;
    }

        .about-card ul li {
            margin-bottom: 10px;
            font-size: 1em;
            color: #fff;
        }

.sublist {
    margin-left: 25px;
    color: #aaa;
}

.highlight {
    color: red;
    text-shadow: 0 0 10px red;
    font-weight: bold;
}

.truth {
    color: lime;
    font-weight: bold;
    text-shadow: 0 0 5px lime;
}

/* efecto CRT/flicker */
@keyframes flicker {
    0% {
        opacity: 1;
    }

    49% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }

    99% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

/* Servicios*/

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #111;
    border: 2px solid red;
    padding: 20px;
    color: #eee;
    font-family: "Courier New", monospace;
    text-align: left;
    box-shadow: 0 0 15px rgba(255,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .service-card h3 {
        color: red;
        text-shadow: 0 0 5px red;
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .service-card:hover {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255,0,0,0.8);
    }

    .service-card p {
        font-size: 0.95em;
        line-height: 1.4em;
    }

    /* Glitch border effect */
    .service-card::before, .service-card::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        background: red;
        top: 0;
        left: -100%;
        animation: glitch-border 2s infinite linear;
    }

    .service-card::after {
        bottom: 0;
        top: auto;
        animation-delay: 1s;
    }

@keyframes glitch-border {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}


/* Rabbit glitch */
.rabbit-glitch {
  font-size: 5em;
  animation: glitch 1.5s infinite;
}

@keyframes glitch {
  0% { text-shadow: 2px 2px red; }
  50% { text-shadow: -2px -2px white; }
  100% { text-shadow: 2px 2px red; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 30px auto;
    gap: 15px;
}

    .contact-form input,
    .contact-form textarea {
        background: #000;
        border: 2px solid red;
        padding: 10px;
        color: #fff;
        font-family: "Courier New", monospace;
        outline: none;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #fff;
            box-shadow: 0 0 10px red;
        }

    .contact-form button {
        background: red;
        color: #fff;
        padding: 12px;
        border: none;
        cursor: pointer;
        font-weight: bold;
        text-transform: uppercase;
        transition: 0.3s;
    }

        .contact-form button:disabled {
            background: #333;
            cursor: not-allowed;
        }

/* Slider captcha */
.captcha {
    margin-top: 10px;
    text-align: left;
    font-size: 0.9em;
    color: #aaa;
}

.slider {
    position: relative;
    width: 100%;
    height: 40px;
    background: #111;
    border: 2px solid red;
    border-radius: 20px;
    overflow: hidden;
    user-select: none;
}

.track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,0,0,0.3);
    width: 0;
    transition: width 0.2s;
}

.thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #000;
    border-right: 2px solid red;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: left 0.2s;
}

.unlock-text {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    color: lime;
    opacity: 0;
    transition: opacity 0.3s;
}


/* Pills */
.pill-options {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.pill {
  width: 120px;
  height: 60px;
  border-radius: 30px;
  line-height: 60px;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pill.red {
  background: linear-gradient(to right, #ff0000, #a30000);
  color: #fff;
}

.pill.white {
  background: linear-gradient(to right, #fff, #ccc);
  color: #000;
}

.pill:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,0,0,1);
}

footer {
  background: #111;
  padding: 15px;
  font-size: 0.9em;
  color: #aaa;
}

/* ===== Mejoras responsive del formulario (añadido al final) ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #0a0a0a;
  border: 2px solid red;
  padding: clamp(20px, 5vw, 40px);
  margin: 40px auto;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 25px rgba(255,0,0,0.6), inset 0 0 15px rgba(255,0,0,0.3);
  position: relative;
  border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #000;
  border: 2px solid #444;
  padding: 14px;
  color: #0f0;
  font-family: "Courier New", monospace;
  font-size: clamp(0.9em, 2.5vw, 1.1em);
  border-radius: 5px;
  outline: none;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: red;
  box-shadow: 0 0 10px red, 0 0 20px rgba(255,0,0,0.7);
}

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

.contact-form button {
  width: 100%;
  background: red;
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 5px;
  font-size: clamp(1em, 2.5vw, 1.2em);
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s;
  box-shadow: 0 0 10px red, inset 0 0 10px rgba(0,0,0,0.5);
}

.contact-form button:hover:not(:disabled) {
  background: #ff3333;
  text-shadow: 0 0 5px #fff;
  box-shadow: 0 0 20px red, inset 0 0 15px rgba(0,0,0,0.7);
}

.contact-form button:disabled {
  background: #222;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

/* Slider captcha ajustes responsive */
.slider {
  position: relative;
  width: 100%;
  height: 50px;
  background: #111;
  border: 2px solid red;
  border-radius: 30px;
  overflow: hidden;
}

.thumb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.unlock-text {
  line-height: 50px;
}

@media (max-width: 600px) {
  .contact-form {
    gap: 15px;
  }
  .contact-form button {
    font-size: 1em;
    padding: 14px;
  }
  .thumb {
    width: 45px;
    height: 45px;
    font-size: 1em;
  }
}
