@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: #1e293b;
    color: #333;
    overflow-x: hidden;
}

.navbar {
    background-color: #1a1d20; 
    color: #ffffff;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    z-index: 100;
    position: relative;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.btn-nav-primary {
    background-color: #3498db;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-nav-primary:hover {
    background-color: #2980b9;
}

.btn-nav-danger {
    background-color: #ef4444;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-nav-danger:hover {
    background-color: #dc2626;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #0b0d0f; 
    color: #94a3b8; 
    font-size: 0.9rem;
    margin-top: auto;
}

.footer strong {
    color: #3498db;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1e293b;
    border: 1px solid #334155;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background-color: #334155;
    border-color: #475569;
    transform: translateY(-3px);
}

.hero-section, .auth-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px; 
    background-color: #1a1d20;
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
    gap: 50px;
    text-align: left;
}

.text-gradient {
    background: linear-gradient(135deg, #3498db, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.badge-pro {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-text {
    flex: 1;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-text h2 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.floating-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: #3498db;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
}

.card-header-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-header-visual h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0 !important;
}

.card-body-visual {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mock-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, background 0.2s;
}

.mock-contact:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.mock-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.mock-info {
    display: flex;
    flex-direction: column;
}

.mock-info h5 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.mock-info span {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.3;
}

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

.hero-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.auth-wrapper .formBox {
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); 
}

.contenedor-principal {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px; 
    flex-grow: 1;
    margin: auto; 
    align-items: center; 
}

.formBox {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
}

.listBox {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    height: 480px; 
    overflow-y: auto;
    width: 100%;
}

.formBox h3, .listBox h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    border-color: #3498db;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="submit"], .btn-action {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="submit"]:hover, .btn-action:hover { 
    background-color: #2980b9; 
}

ul {
    list-style: none;
}

.tarjeta-contacto {
    background-color: #fff;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.tarjeta-contacto:hover {
    transform: translateX(5px);
}

.tarjeta-contacto h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.tarjeta-contacto small {
    color: #64748b;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.btn-cancelar {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #475569;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-cancelar:hover {
    background-color: #334155;
}

.acciones {
    display: flex;
    gap: 10px;
}

.btn-editar, .btn-borrar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    border: none;
}

.btn-editar {
    background-color: #fef08a;
    color: #854d0e;
}

.btn-editar:hover {
    background-color: #fde047;
    transform: translateY(-2px);
}

.btn-borrar {
    background-color: #fecaca;
    color: #b91c1c;
}

.btn-borrar:hover {
    background-color: #fca5a5;
    transform: translateY(-2px);
}

.listBox::-webkit-scrollbar {
    width: 6px;
}

.listBox::-webkit-scrollbar-track {
    background: transparent;
}

.listBox::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.listBox::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .hero-section, .auth-wrapper {
        background-attachment: scroll !important;
        padding: 60px 20px !important;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        background-color: #1a1d20;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 15px 15px rgba(0,0,0,0.4);
        padding: 30px 0;
        gap: 25px;
        border-top: 1px solid #334155;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text h2 { 
        font-size: 2.5rem; 
    }
    
    .hero-text p { 
        font-size: 1rem; 
        margin-bottom: 25px; 
    }

    .hero-visual {
        width: 100%;
    }

    .floating-card {
        animation: none;
        transform: translateY(0);
    }

    .contenedor-principal { 
        flex-direction: column; 
        align-items: center;
        padding: 20px 15px;
        gap: 20px;
    }
    
    .formBox, .listBox { 
        max-width: 100%; 
        padding: 20px;
    }

    .listBox {
        height: auto;
        max-height: 500px;
    }

    .tarjeta-contacto {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .acciones {
        width: 100%;
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}