/* TopServi Premium Design System */

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

:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-premium: 0 20px 50px -12px rgba(15, 23, 42, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img { height: 42px; width: auto; }

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
}

.logo-text span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 32px; }

nav ul a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--accent);
}

nav ul a:hover { color: var(--accent); }

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-nav {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
}

.btn-submit {
    background: var(--accent);
    color: var(--white);
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Hero Section */
#hero {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content-inner {
    transition: opacity 0.4s ease;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p#hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-desc {
    color: rgba(250, 250, 250, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features li {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    backdrop-filter: blur(5px);
}

.hero-features li i { color: var(--accent); }

.badge {
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glass Card Form */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.lead-form h3 { margin-bottom: 8px; font-size: 1.5rem; }
.lead-form p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Services Grid */
#servicios { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-badge { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 12px; display: block; }

.gremios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    perspective: 1500px;
}

.gremio-card {
    background: transparent;
    height: 380px;
    perspective: 1500px;
    border: none;
    padding: 0;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.gremio-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-front {
    background: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.card-back {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-back img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition);
}

.gremio-card:hover .card-back img {
    transform: scale(1.1);
    opacity: 0.8;
}

.card-back-info {
    position: relative;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 1;
}

.card-back-info h3 { color: white; margin-bottom: 4px; }
.card-back-info span { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.gremio-card:hover .card-icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(-10deg);
}

/* Projects */
.bg-dark { background: var(--primary); color: var(--white); padding: 120px 0; }
.text-white h2 { color: var(--white); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 450px;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    color: var(--white);
}

.project-card:hover .project-img { transform: scale(1.1); }

/* Footer */
#main-footer {
    background: var(--bg-light);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-info p { margin: 24px 0; color: var(--text-muted); max-width: 300px; }
.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--white); }

.footer-links h4, .footer-contact h4 { margin-bottom: 24px; font-size: 1.1rem; }
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; color: var(--text-muted); }
.footer-contact i { color: var(--accent); margin-top: 4px; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal a { text-decoration: none; color: inherit; margin: 0 10px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; }
    .hero-features { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    header .desktop-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-features { grid-template-columns: 1fr; }
}

/* Contact system updated: Phone/WA removed */