/* === Estilos Generales === */
:root {
    --primary-color: #d4af37; /* Dorado */
    --secondary-color: #1a1a1a; /* Fondo oscuro */
    --dark-bg: #000000c9; /* Negro */
    --light-text: #eee;
    --dark-text: #121212;
    --grey-text: #ccc;
    --input-bg: #2e2e2e;
    --border-color: #555;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #1DAE50;
    --error-red: #d9534f; /* Rojo para el hover */
    --warning-yellow: #ffcc00;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: var(--primary-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* === Utilidades Flex === */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 15px;
}

.flex-wrap {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* === Cabecera === */
.site-header {
    background-color: var(--dark-bg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin: 0;
}

.logo-img {
    height: clamp(45px, 10vw, 60px);
    width: auto;
    transition: transform 0.3s ease-in-out;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Contenedor para el botón y texto GRATIS */
.cta-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin-top: 15px;
}

/* Texto "GRATIS*" proporcional al botón */
.gratis-text {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-top: 8px; 
    margin-bottom: 0;
    text-shadow: 0 0 3px rgba(212, 175, 55, 0.5);
    line-height: 1;
}


/* === Botones === */
.btn {
    background-color: var(--primary-color);
    color: var(--dark-text);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Estilo de botón "Neón Dorado" */
#openCustomizeHeader {
    background-color: #1a1a1a;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.7), 
                0 0 10px rgba(212, 175, 55, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* EFECTO HOVER ROJO */
#openCustomizeHeader:hover, #openCustomizeHeader:focus {
    background-color: var(--error-red);
    color: var(--light-text);
    border-color: var(--error-red);
    box-shadow: 0 0 15px rgba(217, 83, 79, 0.8);
    transform: scale(1.05);
    outline: none;
}


/* Botón específico de WhatsApp */
.whatsapp-btn-style {
    background-color: var(--whatsapp-green);
    color: white;
}
.whatsapp-btn-style:hover, .whatsapp-btn-style:focus {
    background-color: var(--whatsapp-green-hover);
}

/* Botón Sobre Nosotros separado */
.about-btn-style {
    display: block;
    margin: 40px auto;
    text-align: center;
}

/* === Banner === */
.banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.banner .text {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.banner h2 {
    font-size: clamp(24px, 6vw, 40px);
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    animation: fadeInUp 1s ease forwards;
}

/* === Secciones Demo === */
.demo-section {
    background: var(--secondary-color);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.demo-section:last-of-type {
    border-bottom: none;
}

.demo-img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.demo-img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.demo-text {
    max-width: 450px;
    text-align: center;
}
@media (min-width: 768px) {
    .demo-text {
        text-align: left;
    }
}

.demo-text h2 {
    font-size: clamp(20px, 4vw, 26px);
    color: var(--primary-color);
    margin-bottom: 15px;
}
.demo-text p {
    color: var(--grey-text);
    margin-bottom: 20px;
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; 
  background-color: rgba(0, 0, 0, 0.911);
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.modal-content {
  background-color: #111111;
  margin: auto;
  padding: 30px;
  border: 2px solid #f1c40fd0;
  width: 90%;
  max-width: 600px;
  color: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
  position: relative;
  text-align: center;
}

#termsModal .modal-content, #disclaimerModal .modal-content {
    max-width: 800px;
    text-align: left;
}


/* Título del Modal Personalizado */
#customizeModal .modal-content h2 {
    margin-bottom: 10px;
}

/* Flecha debajo del título del modal */
.arrow-down {
    color: #f1c40f; 
    font-size: 3.5rem;
    margin-bottom: 20px;
}


.modal-content .close {
  color: #fd0000;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 39px;
  cursor: pointer;
}

.modal-content textarea {
  width: 100%;
  min-height: 100px;
  background-color: #00000085;
  color: #fff;
  border: 1px solid #f1c40f;
  padding: 10px;
  border-radius: 8px;
  resize: vertical;
}

.modal-content .btn {
  background-color: #f1c40f;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.modal-content .btn:hover {
  background-color: #da0707;
  color: #fff;
}

.modal-content button[type="submit"] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #b38e22 0%, #f1c40f 70%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid #f1c40f;
  padding: 14px 28px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.6),
    0 4px 12px rgba(0,0,0,0.4);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.modal-content button[type="submit"]::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -45%;
  width: 40%;
  height: 200%;
  background: rgba(0, 0, 0, 0.4);
  transform: rotate(25deg);
  transition: all 0.7s ease;
}

.modal-content button[type="submit"]:hover {
  background: linear-gradient(145deg, #f1c40f 0%, #b38e22 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.7),
    0 6px 18px rgba(0,0,0,0.5);
}

.modal-content button[type="submit"]:hover::before {
  top: -20%;
  left: 120%;
  transition: all 0.7s ease;
}

.modal-content button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

/* === Formulario dentro del Modal === */
#personaliza-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

#personaliza-form input,
#personaliza-form select,
#personaliza-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #0a0a0ace;
    color: var(--light-text);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#personaliza-form input:focus,
#personaliza-form select:focus,
#personaliza-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

#personaliza-form textarea {
    min-height: 120px;
    resize: vertical;
}

#personaliza-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: .7em auto;
    padding-right: 40px;
}
@-moz-document url-prefix() {
    #personaliza-form select {
        padding-right: 12px;
    }
}

#personaliza-form button[type="submit"] {
    margin-top: 15px;
}

/* === Contenedor del Resultado === */
#resultado {
    background-color: #050505bb;
    color: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 20px;
    text-align: left;
    border: 1px solid #444;
    min-height: 50px;
    transition: background-color 0.3s;
}

#resultado h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}
#resultado p {
    margin: 0;
    line-height: 1.5;
    color: var(--warning-yellow);
}
#resultado pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: var(--light-text);
}
#resultado p[style*="color: #ff6b6b;"] {
     color: var(--error-red);
     font-weight: bold;
}

/* === Footer === */
.footer {
    background-color: var(--dark-bg);
    padding: 40px 20px;
    border-top: 3px solid var(--primary-color);
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.footer h2 {
    font-size: clamp(20px, 4vw, 24px);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--grey-text);
}

.footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 20px;
    margin: 15px 0;
}

.footer ul li a {
    color: var(--grey-text);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #b38e22;
    transform: scale(1.15);
}

/* === Animaciones === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Media Queries para Responsividad === */
@media (max-width: 768px) {
    .site-header .container.flex-between {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .logo-and-cta-wrapper {
        align-items: center;
    }

    .main-nav {
      gap: 15px;
      margin: 0;
      justify-content: center;
    }
    
    .demo-content.flex-wrap {
        flex-direction: column;
        text-align: center;
    }
    .footer ul {
        flex-direction: column;
        gap: 10px;
    }
    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #openCustomizeHeader {
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    #personaliza-form input,
    #personaliza-form select,
    #personaliza-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    #resultado {
        font-size: 0.9rem;
        padding: 15px;
    }
    .social-icons a {
        font-size: 1.3rem;
    }
    .footer p {
        font-size: 0.8rem;
    }
}

/* === Carrusel dinámico para entradas === */
.blog-section {
    padding: 2rem 1rem;
    background-color: #000000;
    border-top: 1px solid #000000;
}
.blog-section h2 {
    text-align: center;
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.blog-scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 10px;
}
.blog-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0.8rem;
    padding: 0.8rem 0;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.blog-list::-webkit-scrollbar {
    display: none;
}

.blog-card {
    flex: 0 0 auto;
    width: 200px;
    background: #0c0c0c;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.blog-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.blog-content {
    padding: 0.6rem;
}

.blog-content h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: #f1c40f;
}
.blog-content .blog-date {
    font-size: 0.7rem;
    color: #3a3838;
    margin-bottom: 0.3rem;
}
.blog-content p {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--primary-color);
    color: var(--dark-text);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s;
}
.scroll-btn:hover {
    background-color: #b08a2e;
    transform: translateY(-50%) scale(1.1);
}
.left-btn  { left:  2px; }
.right-btn { right: 2px; }

/* === Modal de Política de Privacidad === */
#disclaimerModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#disclaimerModal .modal-content {
    background-color: #1a1a1a;
    color: #eee;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid #555;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

#disclaimerModal .modal-content h2 {
    font-size: 1.5rem;
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

#disclaimerModal .modal-content ul {
    padding-left: 20px;
}

#disclaimerModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

#disclaimerModal .close:hover {
    color: #fff;
}

/* === Opiniones de Clientes === */
.opiniones-section {
    padding: 60px 0;
    background-color: #000000;
    border-top: 1px solid #333;
    text-align: center;
}

.opiniones-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.opiniones-section .subtitulo {
    color: var(--grey-text);
    margin-bottom: 2rem;
}

.opiniones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial {
    display: flex;
    align-items: flex-start;
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 350px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
}

.testimonial blockquote {
    margin: 0;
    color: #eee;
}

.stars {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.ver-mas {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    clear: both;
}

@media (max-width: 600px) {
    .opiniones-grid {
        flex-direction: column;
        align-items: center;
    }
    .ver-mas {
        margin-top: 1.5rem;
    }
}

/* === VENTANAS ADICIONALES === */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.05rem;
    font-weight: bold;
    margin: 15px 0;
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 2px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #f7d75e;
}
.pago-container {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.metodos-pago {
  max-width: 600px;
  width: 100%;
}

.metodos-pago h3 {
  text-align: center;
}

.metodo {
  background-color: #2a2a2aab;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid var(--primary-color);
}

.metodo-logo {
  display: block;
  margin: 10px auto;
  max-width: 150px;
}

@media (max-width: 768px) {
  .pago-container {
    padding: 10px;
  }

  .metodos-pago {
    width: 100%;
    padding: 0 10px;
  }

  .metodo {
    padding: 15px;
  }

  .metodo-logo {
    max-width: 120px;
  }

  .copy-btn {
    margin-top: 8px;
    display: block;
    width: 100%;
    font-size: 0.9rem;
  }

  .metodos-pago h3 {
    font-size: 1.2rem;
  }

  .metodo p,
  .metodo li {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .metodo-logo {
    max-width: 100px;
  }

  .copy-btn {
    font-size: 0.85rem;
  }

  .metodos-pago h3 {
    font-size: 1rem;
  }
}