/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a365d;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #152642 0%, #254d8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #1a365d;
    border: 2px solid #1a365d;
}

.btn-secondary:hover {
    background: #1a365d;
    color: white;
}

.btn-admin {
    background: linear-gradient(135deg, #d4af37 0%, #f7ef8a 100%);
    color: #1a365d;
    font-weight: 600;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #c19b2e 0%, #e8e07a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
}

.logo-placeholder i {
    color: #2d5aa0;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2d5aa0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a365d;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* Services */
.services {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: #2d5aa0;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-features i {
    color: #28a745;
}

/* Technologies */
.technologies {
    padding: 80px 0;
    background: #f8f9fa;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 40px;
    color: #2d5aa0;
    margin-bottom: 20px;
}

/* About */
.about {
    padding: 80px 0;
    background: white;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #2d5aa0;
    margin-bottom: 5px;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: #2d5aa0;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

/* Admin Section */
.admin-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
}

.admin-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a365d;
}

.admin-card h3 i {
    color: #d4af37;
    margin-right: 10px;
}

.admin-card p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-placeholder {
    color: white;
    margin-bottom: 20px;
}

.footer-brand .logo-placeholder i {
    color: #d4af37;
}

.footer-links h4 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero .container,
    .about .container,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Logo QR Styles */
.logo-qr {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-grid {
    width: 50px;
    height: 50px;
    position: relative;
    background: #1a365d;
    border-radius: 8px;
    padding: 5px;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    position: relative;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.qr-corner {
    position: absolute;
    width: 12px;
    height: 12px;
}

.qr-corner.tl {
    top: 2px;
    left: 2px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
}

.qr-corner.tr {
    top: 2px;
    right: 2px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
}

.qr-corner.bl {
    bottom: 2px;
    left: 2px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
}

.qr-square {
    background: #1a365d;
    border-radius: 1px;
}

.qr-square.large {
    width: 100%;
    height: 100%;
}

.qr-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
}

.qr-row {
    display: flex;
    gap: 3px;
}

.qr-dot {
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.qr-dot.active {
    background: #1a365d;
    transform: scale(1.2);
}

.shield-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2d5aa0;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1a365d;
    letter-spacing: 0.5px;
}

.brand-tech {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #2d5aa0;
    letter-spacing: 1px;
}

/* Efectos hover para el logo */
.qr-container:hover .qr-dot.active {
    background: #d4af37;
    animation: pulse 1s infinite;
}

.qr-container:hover .shield-overlay {
    color: #d4af37;
    transform: translate(-50%, -50%) rotate(15deg);
    transition: transform 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.5); }
}

/* Versión más grande para el footer */
.footer .qr-grid {
    width: 70px;
    height: 70px;
}

.footer .shield-overlay {
    font-size: 24px;
    width: 30px;
    height: 30px;
}

/* Responsive para el logo */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .qr-container {
        gap: 0;
    }
}

/* Footer adicional */
.footer-description {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.tagline {
    font-size: 0.8rem;
    color: #d4af37;
    margin-top: 3px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #d4af37;
    transform: translateY(-3px);
}
