/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado */
header {
    background: linear-gradient(135deg, #4d0a8f 0%, #340762 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #7be700;
}
margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sección de búsqueda */
.search-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.input-group button {
    padding: 12px 20px;
    background-color: #340762;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-group button:hover {
    background-color: #340762;
}

/* Sección de resultados */
.results-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Mapa de propagación DNS */
.map-container {
    height: 400px;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#dns-map {
    height: 100%;
    width: 100%;
}

.map-legend {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.map-legend h4 {
    color: #340762;
    margin-bottom: 0.5rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Sección de aceleración de propagación */
.acceleration-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.acceleration-section h2 {
    color: #340762;
    margin-bottom: 1rem;
}

.acceleration-section h3 {
    color: #340762;
    margin: 1.5rem 0 0.5rem;
}

.acceleration-tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.acceleration-tips.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .acceleration-tips.two-columns {
        grid-template-columns: 1fr;
    }
}

.tip-card {
    background-color: #f8f9fa;
    border-left: 4px solid #340762;
    padding: 1.5rem;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip-card h4 {
    color: #340762;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.tip-card h4 i {
    margin-right: 0.5rem;
}

.tip-card p {
    font-size: 0.95rem;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.loading i {
    font-size: 2rem;
    color: #340762;
    margin-bottom: 1rem;
}

.results-container {
    overflow-x: auto;
}

.dns-server {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 4px solid #340762;
}

.dns-server h3 {
    margin-bottom: 0.5rem;
    color: #340762;
}

.dns-record {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f0f2f5;
    border-radius: 4px;
    font-family: monospace;
}

.error-message {
    color: #e74c3c;
    padding: 0.5rem;
    background-color: #fdeaea;
    border-radius: 4px;
}

/* Sección de información */
.info-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    color: #340762;
    margin-bottom: 1rem;
}

.info-section h3 {
    color: #340762;
    margin: 1.5rem 0 0.5rem;
}

.info-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Pie de página */
footer {
    background: linear-gradient(135deg, #4d0a8f 0%, #340762 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group input,
    .input-group select,
    .input-group button {
        width: 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
}

.ads-section {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 2rem 0;
}

.ad-link {
    display: block;
    width: 50%;
    max-width: none;
}

.ad-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .ads-section {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .ad-link {
        width: 100%;
        max-width: none;
    }
}

.kiwu-credito {
  margin-top: 0.5em;
  font-size: 1em;
  text-align: center;
  letter-spacing: 0.01em;
}
.kiwu-link {
  color: #fff;
  padding: 0.15em 0.7em 0.15em 0.5em;
  border-radius: 1.2em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  display: inline-block;
  position: relative;
}
.kiwu-link:hover {
  color: #00ff0d;
  text-decoration: underline wavy #00c3ff 2px;
}