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

:root {
    --verde-herrerodev: #32FF87;
    --azul-claro-herrerodev: #00C8D7;
    --azul-oscuro-herrerodev: #295AB1;
    --gris-oscuro-herrerodev: #262626;
}

body {
    font-family: 'Sometype Mono', monospace;
    line-height: 1.6;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gris-oscuro-herrerodev), var(--azul-oscuro-herrerodev));
    z-index: -1;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--verde-herrerodev) 0%, transparent 30%),
                radial-gradient(circle at 80% 80%, var(--azul-claro-herrerodev) 0%, transparent 30%);
    opacity: 0.1;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Sección de bienvenida */
.welcome-section {
    text-align: center;
    padding: 0 0 3rem;
    max-width: 600px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--verde-herrerodev);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(50, 255, 135, 0.3);
}

.welcome-section p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}

/* Sección de búsqueda */
.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.search-form {
    width: 100%;
    margin: 0 auto 2rem;
}

.search-group {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.domain-extension-select {
    padding: 0.5rem;
    border: 1px solid var(--verde-herrerodev);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--verde-herrerodev);
    font-family: 'Sometype Mono', monospace;
    width: 180px;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.domain-extension-select:hover {
    background: rgba(50, 255, 135, 0.1);
}

.domain-extension-select option {
    background: #1a1a1a;
    color: var(--verde-herrerodev);
}

#domain-name {
    flex: 1;
}

    @media (max-width: 768px) {
        .search-group {
            flex-direction: row;
            flex-wrap: wrap;
        }
        
        #domain-name {
            width: calc(100% - 190px);
        }
        
        .domain-extension-select {
            width: 180px;
            margin-left: 10px;
        }
        
        .search-form button {
            width: 100%;
            margin-top: 10px;
        }    .domain-result {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .contact-btn {
        width: 100%;
        margin-top: 10px;
    }
}

input[type="text"] {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    font-family: 'Sometype Mono', monospace;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--verde-herrerodev);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(50, 255, 135, 0.2);
}

button[type="submit"] {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--verde-herrerodev), var(--azul-claro-herrerodev));
    color: var(--gris-oscuro-herrerodev);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Sometype Mono', monospace;
    white-space: nowrap;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 255, 135, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Contenedor de resultados */
.results-container {
    margin: 0 auto;
    padding: 0;
    min-height: 50px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para los resultados de búsqueda */
.domain-result {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .domain-result {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .domain-name {
        font-size: 1.2rem;
    }

    .domain-status {
        justify-self: center;
    }

    .contact-btn {
        justify-self: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.domain-result:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.domain-name {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--verde-herrerodev);
    text-shadow: 0 0 8px rgba(50, 255, 135, 0.2);
}

.domain-status {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.available {
    background: rgba(50, 255, 135, 0.1);
    color: var(--verde-herrerodev);
    border: 1px solid rgba(50, 255, 135, 0.3);
}

.taken {
    background: rgba(255, 99, 71, 0.1);
    color: #ff6347;
    border: 1px solid rgba(255, 99, 71, 0.3);
}

.contact-btn {
    padding: 0.35rem 0.8rem;
    background: linear-gradient(135deg, var(--verde-herrerodev) 0%, var(--azul-claro-herrerodev) 50%, var(--azul-oscuro-herrerodev) 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Sometype Mono', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 180px;
}

.contact-btn:hover {
    background: var(--azul-oscuro-herrerodev);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 215, 0.3);
}

/* Loader para la búsqueda */
.searching {
    text-align: center;
    color: var(--verde-herrerodev);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(50, 255, 135, 0.3);
    border-radius: 50%;
    border-top-color: var(--verde-herrerodev);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .welcome-section {
        padding: 0 0 2rem;
    }

    .main-logo {
        max-width: 280px;
    }

    .search-form {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
        padding: 1rem;
    }

    .results-container {
        margin-top: 1.5rem;
    }
    
    .domain-status {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin: 0.5rem auto;
        min-width: 140px;
    }

    .contact-btn {
        margin-top: 0.5rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .search-section {
        padding: 1.5rem;
    }

    .main-logo {
        max-width: 240px;
    }

    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    input[type="text"] {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

.error {
    color: #ff6347;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 99, 71, 0.1);
    border-radius: 8px;
}

.error-domain {
    border-left: 4px solid #ff6347 !important;
    opacity: 0.7;
}

.searching {
    text-align: center;
    color: #666;
    padding: 1rem;
}

/* Estilos para dominios disponibles/no disponibles */
.available-domain {
    background: rgba(50, 255, 135, 0.05);
}

.taken-domain {
    background: rgba(255, 99, 71, 0.05);
    opacity: 0.8;
}
