:root {
    --primary-dark: #550000;
    --primary-light: #AA0000;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --bg-dark: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Header */
header {
    background-color: black;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header_icon{
    size: 100hv;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

@-webkit-keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }
  
  .fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
  }
  
  .animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
  }

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s;
    font-size: 2.5rem;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.language-switcher {
    display: flex;
    margin-left: 20px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    color: #333;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: bold;
}

.lang-btn:hover {
    background: #AA0000;
    border: #da1b1b;
}

.lang-btn.active {
    background: #4d1919;
    color: white;
    border-color: #701616;
}

/* Primera sección */
.hero {
    padding-top: 120x; /* Ajusta este valor según la altura de tu navbar */
    min-height: calc(100vh - 80px); /* Resta la altura del navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}


.hero-logo {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Forzar renderizado GPU */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-logo h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin: 0;
}

.hero-logo h1 span {
    color: var(--primary-light);
}


.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content h2 span {
    color: var(--primary-light);
}


.app-mockups {
    padding: 5rem 2rem;
    background-color: var(--bg-dark);
    text-align: center;
}

.section-title {
    color: var(--text-light);
}

.mockup-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 3rem;
    padding: 0 5%;
}

.app-screenshot {
    width: 280px;
    text-align: center;
    transition: all 0.3s ease;
}

.app-screenshot img {
    width: auto;
    height: 500px;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(170, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.app-screenshot:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(170, 0, 0, 0.4));
}

.app-screenshot p {
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    font-size: 1.2rem;
    opacity: 0.9;
}


.app-screenshot:hover {
    transform: scale(1.02);
}



.store-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    align-items: center;
}

.badge {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background: #eee;
    font-size: 16px;
    transition: all 0.3s;
    height: 45px;
    width: 150px;
    position: relative;
}


.badge i {
    font-size: 24px;
    width: 30px;
    text-align: center;
    margin-right: 8px;
}


.badge.app-store i {
    position: relative;
    left: -2px;
}

.badge .text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    justify-content: center;
    flex-grow: 1;
}

.badge .text span:first-child {
    font-size: 8px;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.badge .text span:last-child {
    font-size: 14px;
    font-weight: 600;
}


.badge:hover {
    background: #e0e0e0;
    transform: scale(1.03);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.badge i {
    color: #555;
}
.cta-btn {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 2px solid var(--primary-light);
}

.cta-btn:hover {
    background-color: transparent;
    color: var(--primary-light);
}

/* Características */
.features {
    padding: 5rem 10%;
    background-color: var(--bg-dark);

}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.feature-card {
    background-color: rgba(85, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    border: 1px solid var(--primary-light);
    width: 100%;
    max-width: 400px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(170, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Youtube */
.showcase {
    padding: 5rem;
    height: 100vh;
    text-align: center;
}

.video-container {
    max-width: 600px;
    max-height: 600px;
    margin: 0 auto;
    position: relative;
    padding-top: 65vh;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid var(--bg-dark);
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    padding: 3rem 10%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

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

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

.about-header {
    background: var(--primary-dark);
    color: white;
    padding: 7rem 2rem;
    text-align: center;
    padding-bottom: 1rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-card {
    background: var(--bg-dark);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid #f8f9fa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: var(--primary-dark);
    border: 4px solid white;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--primary-light);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.doc-section {
    margin-bottom: 2rem;
}

.doc-section h3 {
    color: grey;
    margin-bottom: 0.5rem;
}

.doc-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.doc-link {
    display: inline-block;
    margin-top: 1rem;
    color: #737679;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.doc-link:hover {
    color: #4f4f50;
    border-bottom: 1px solid #484849;
    text-decoration: none;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-light);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.pdf-downloads {
    margin-top: 1.5rem;
    background-color: rgba(85, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
}

.pdf-list {
    list-style-type: none;
    margin-top: 0.5rem;
}

.pdf-link {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    background-color: rgba(170, 0, 0, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pdf-link i {
    margin-right: 10px;
    color: #e63946; /* Rojo para iconos PDF */
    font-size: 1.2rem;
}

.pdf-link:hover {
    background-color: rgba(170, 0, 0, 0.3);
    transform: translateX(5px);
}

.pdf-link::after {
    content: "↓";
    margin-left: auto;
    color: var(--primary-light);
    font-weight: bold;
}


/* Responsive Design */
@media (max-width: 768px) {

    .language-switcher {
        margin: 10px 0;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.5s;
    }

    .nav-links.active {
        left: 0;
    }

    .features {
        padding: 3rem 5%;
    }

    .features-grid{
        grid-template-columns: 1fr;
    }
    
    .section-card{
        scroll-margin-top: 20px;
        padding-top: 20px;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding: 0 5%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .mockup-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .app-screenshot {
        width: 80%;
        max-width: 300px;
    }

    .video-container{
        padding: 30vh 5%;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }

    .doc-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .pdf-link {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .pdf-link i {
        font-size: 1rem;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid > *:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 80%;
    }
}