* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #ff6347;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-weight: 600;
}

header {
    background-color: #000;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav h1:hover {
    color: #ff6347;
    transform: scale(1.1);
}

nav h1::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #ff6347;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav h1:hover::after {
    width: 100%;
}

nav h1 a {
    color: inherit;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li {
    transition: color 0.3s, transform 0.3s;
}

nav ul li:hover {
    transform: scale(1.1);
}

nav ul li a {
    color: #fff;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6347;
}

nav ul li a.active {
    color: #ff6347;
    font-weight: 600;
    position: relative;
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ff6347;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.cocin-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f39c12 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    margin-top: 60px;
}

.cocin-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
}

.cocin-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.cocin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cocin-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.cocin-section:last-child {
    border-bottom: none;
}

.cocin-section h2 {
    color: #ff6347;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
}

.cocin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Screenshots en formato vertical para móvil */
.cocin-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screenshot {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.screenshot:hover {
    transform: scale(1.05);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-placeholder {
    width: 100%;
    height: 350px; /* Más alto para formato vertical de móvil */
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.2em;
}

.screenshot-caption {
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    font-size: 0.9em;
    color: #555;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.tech-item {
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: #333;
}

.download-section {
    text-align: center;
    background: #f9f9f9;
    padding: 60px 20px;
}

/* Botones al estilo Moai Jungle */
.project-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.github-btn {
    background: #333;
    color: white;
}

.github-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.demo-btn {
    background: #ff6347;
    color: white;
}

.demo-btn:hover {
    background: #ff7f6b;
    transform: translateY(-2px);
}

.manual-btn {
    background: #4a752c;
    color: white;
}

.manual-btn:hover {
    background: #5a8a3a;
    transform: translateY(-2px);
}

.back-to-projects {
    display: inline-block;
    margin-top: 30px;
    color: #ff6347;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ff6347;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-to-projects:hover {
    background: #ff6347;
    color: white;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #fff;
    margin-top: auto;
    width: 100%;
}

.screenshot-group {
    margin-bottom: 40px;
}

.screenshot-group h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.compatibility-info {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
    border-left: 4px solid #ff6347;
}

.compatibility-info h3 {
    color: #333;
    margin-bottom: 15px;
}

.compatibility-info p {
    color: #555;
    margin-bottom: 10px;
}

.lang-btn {
    position: absolute;
    top: 80px;
    right: 30px;
    background: #FF6347;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1100;
}

.lang-btn:hover {
    background: #ff7f6b;
}

@media(max-width: 768px) {
    .cocin-features {
        grid-template-columns: 1fr;
    }

    .cocin-screenshots {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .screenshot-placeholder {
        height: 300px;
    }

    .project-buttons {
        flex-direction: column;
        align-items: center;
    }

    .project-btn {
        width: 200px;
        justify-content: center;
    }
}