:root {
    --bg-color: #0b1114;
    --bg-light: #161e23;
    --bg-card: #1c252a;
    --primary: #00ff88;
    --primary-hover: #00cc6a;
    --text-main: #f0f0f0;
    --text-muted: #a0aab2;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4rem; /* Margen global más amplio para no quedar pegado al borde del monitor */
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-title span {
    color: var(--primary);
}

.section-badge {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn i {
    margin-left: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(11, 17, 20, 0.9), transparent);
    backdrop-filter: blur(5px);
    padding: 1rem 0; /* Compact padding */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(11, 17, 20, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.logo-container {
    height: 40px; /* Reduced to ensure header is compact */
    display: flex;
    align-items: center;
}

.custom-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.logo-icon {
    height: 60px;
    width: 85px; /* Rectángulo para que entre el portero completo */
    background-image: url('assets/images/logo_icon.png'); /* Archivo físico recortado sin letras */
    background-size: contain; /* Ajustar para mostrar todo el portero completo */
    background-position: center; /* Centrado en el rectángulo */
    background-repeat: no-repeat;
    border-radius: 0; /* Sin círculo */
    mix-blend-mode: lighten;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-style: italic;
    transform: skewX(-5deg); /* Optional slight skew to make it look faster/sportier */
}

.logo-text-top {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text-bottom {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('assets/images/fondo2.png'); /* Imagen subida por el usuario */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11,17,20,0.95) 0%, rgba(11,17,20,0.4) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: left;
    padding: 0;
    margin-left: 3rem; /* Margen extra solo en escritorio para no verlo pegado */
}

.hero-badge {
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    writing-mode: vertical-rl;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary);
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% { top: -50px; }
    100% { top: 50px; }
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.years-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: #000;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: -10px -10px 30px rgba(0,0,0,0.3);
}

.years-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.years-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: var(--bg-light);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.features-list i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-header.center {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.dark {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    justify-content: flex-start;
}

.service-card.has-bg {
    background-size: cover;
    background-position: center;
}

.service-card.video-bg {
    background-image: url('assets/images/design_services.jpeg');
    background-position: 70% 30%;
}

.service-card.group-bg {
    background-image: url('assets/images/design_services.jpeg');
    background-position: 10% 70%;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11,17,20,0.9) 0%, transparent 100%);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-list {
    list-style: none;
    margin-top: 1rem;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.card-tag {
    background-color: var(--primary);
    color: #000;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card.small {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
}

.card-icon-small {
    background-color: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-title-small {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-desc-small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    display: flex;
    min-height: 800px;
}

.contact-image-side {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11,17,20,0.8) 0%, rgba(11,17,20,0.95) 100%);
}

.contact-image-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form-side {
    flex: 1;
    background-color: #fff;
    color: #000;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 2.5rem;
    color: #0b1114;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #666;
    margin-bottom: 3rem;
}

.form-row {
    display: flex;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group label .char-count {
    color: #999;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0b1114;
}

.form-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-custom-logo {
    margin-bottom: 1.5rem;
}

.footer-custom-logo .logo-icon {
    height: 60px;
    width: 85px;
}

.footer-custom-logo .logo-text-top {
    font-size: 1.6rem;
}

.footer-custom-logo .logo-text-bottom {
    font-size: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-image-container {
    height: 100%;
}

.footer-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    background-image: url('assets/images/design_footer.jpeg');
    background-position: 80% 50%;
    background-size: cover;
}

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

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem; /* Reduce global margin on smaller screens */
    }
    .hero-content {
        margin-left: 0; /* Remove extra indentation on mobile/tablet */
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact {
        flex-direction: column;
    }
    .contact-image-side, .contact-form-side {
        padding: 3rem 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
