:root {
    --primary: #00e5ff;
    --secondary: #ff007a;
    --dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8f9fa;
    --text-muted: #ced4da;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 80px 20px 40px; /* Space for fixed navbar */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Logo.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) blur(15px);
    transform: scale(1.1);
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 85, 204, 0.4) 0%, rgba(0, 20, 60, 0.8) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 450px;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
    margin: auto 0; /* Center vertically in the flexible body */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 12, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    height: 30px;
    display: none; /* Hide image logo if still in HTML */
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    display: block;
}

.nav-logo-text:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Hero Section (Home) */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 64px);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Grid Layout (Contactos) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    margin-top: 40px;
}

.contact-card {
    text-align: center;
    padding: 40px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card {
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.card-header {
    margin-bottom: 24px;
}

.avatar-container {
    width: 130px;
    height: 130px;
    background: transparent;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    border: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02); /* Ajuste fino para evitar bordes */
}

.card:hover .avatar-container {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.6);
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.title {
    color: var(--primary);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--glass-border);
}

.card-body {
    margin-bottom: 24px;
}

.description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00b8d4);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00c853, #64dd17) !important;
    color: white !important;
}

.footer-msg {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    body {
        padding: 70px 15px 30px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-logo-text {
        font-size: 18px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px);
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .contact-grid {
        gap: 20px;
        grid-template-columns: 1fr; /* Force single column on mobile */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 24px;
    }

    .avatar-container {
        width: 110px;
        height: 110px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .contact-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Fix for very small screens to prevent overlap */
@media (max-width: 360px) {
    .nav-logo-text {
        font-size: 16px;
        letter-spacing: 0;
    }
    
    .nav-links {
        gap: 10px;
    }
}
