* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px 30px;
}

.section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#domain-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#domain-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.domain-suffix {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.file-upload-fallback {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #667eea;
    font-weight: 500;
    transition: color 0.3s ease;
}

.file-label:hover {
    color: #764ba2;
}

.loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-section {
    margin-top: 30px;
}

.result-card {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.result-card.success {
    background: #d4edda;
    border: 2px solid #28a745;
}

.result-card.warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.result-card.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.result-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.result-card h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.domain-result {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
    margin: 15px 0;
    word-break: break-all;
}

.result-message {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.suggestions-container {
    margin-top: 30px;
}

.suggestions-container h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.suggestion-item {
    padding: 15px;
    background: white;
    border: 2px solid #28a745;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #28a745;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.suggestion-note {
    text-align: center;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
    font-style: italic;
}

/* Estilos para tabla de precios */
.packages-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.packages-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.package-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.package-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.package-card.featured {
    border-color: #ffc107;
    border-width: 3px;
}

.package-card.featured::before {
    content: '⭐ POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
}

.package-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.package-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin: 15px 0;
}

.package-price-period {
    font-size: 0.5em;
    color: #666;
    font-weight: 400;
}

.package-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: 700;
    font-size: 1.2em;
}

.package-select-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-select-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.package-card.selected .package-select-btn {
    background: #28a745;
}

.selected-package-info {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.selected-package-info h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.summary-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.summary-content p {
    padding: 10px 0;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.summary-content p:last-child {
    border-bottom: none;
}

.summary-content strong {
    color: #667eea;
}

#proceed-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Estilos para formulario de registro */
.registration-form {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    border: 2px solid #667eea;
}

.form-summary h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1em;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #667eea;
    display: inline-block;
    min-width: 120px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 200px;
}

/* Responsive Design - Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    main {
        padding: 30px 20px;
    }

    header {
        padding: 30px 20px;
    }

    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .suggestions-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Responsive Design - Móviles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    header {
        padding: 25px 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 25px 15px;
    }

    .packages-title {
        font-size: 1.6em;
    }

    .packages-subtitle {
        font-size: 1em;
    }

    .result-card {
        padding: 20px;
    }

    .result-card h2 {
        font-size: 1.5em;
    }

    .result-icon {
        font-size: 3em;
    }

    .domain-result {
        font-size: 1.2em;
    }

    .package-card {
        padding: 20px;
    }

    .package-name {
        font-size: 1.3em;
    }

    .package-price {
        font-size: 2em;
    }

    .selected-package-info {
        padding: 20px;
    }

    .registration-form {
        padding: 20px;
    }

    .form-summary {
        padding: 15px;
    }

    .services-info {
        padding: 20px !important;
    }

    .services-info h3 {
        font-size: 1.3em !important;
    }

    .services-info ul {
        font-size: 0.95em !important;
        padding-left: 15px !important;
    }

    .services-info p {
        font-size: 0.95em !important;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5em;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #domain-input {
        width: 100%;
        font-size: 1em;
    }

    .domain-suffix {
        font-size: 1em;
        text-align: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    .suggestions-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .suggestion-item {
        padding: 12px;
        font-size: 1em;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .packages-title {
        font-size: 1.4em;
    }

    .packages-subtitle {
        font-size: 0.95em;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .registration-form {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95em;
        padding: 10px 12px;
    }

    .summary-item strong {
        min-width: 100px;
        font-size: 0.95em;
    }

    .file-upload-fallback {
        padding: 12px;
    }

    .file-label {
        font-size: 0.9em;
    }

    .seo-content {
        padding: 15px 0 !important;
    }

    .seo-content h2 {
        font-size: 1.3em !important;
    }

    .seo-content h3 {
        font-size: 1.1em !important;
    }

    .seo-content p,
    .seo-content li {
        font-size: 0.9em !important;
    }
}

/* Responsive Design - Pantallas muy pequeñas */
@media (max-width: 400px) {
    header h1 {
        font-size: 1.3em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .packages-title {
        font-size: 1.2em;
    }

    .package-price {
        font-size: 1.8em;
    }

    .result-card h2 {
        font-size: 1.3em;
    }

    .domain-result {
        font-size: 1.1em;
    }
}

/* Mejoras para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    main {
        padding: 20px 15px;
    }
}
