:root {
    --color-primary: #543994;
    --color-secondary: #333;
    --color-tertiary: #27252b;
    --color-text: #f5f5f5;
    --color-background: #0f0f0f;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: var(--color-background);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 15, 15, 0);
    backdrop-filter: blur(0px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-top, 120);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
}

.header-logo {
    width: 50px;
    height: auto;
}

.header-logo path {
    fill: var(--color-text);
}

.nav-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-background);
}

.header.scrolled .nav-menu a:hover {
    color: var(--color-primary);
}

.section {
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero {
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: var(--z-raised, 5);
}

.about {
    background-color: var(--color-secondary);
}

.mission-vision {
    background-color: var(--color-tertiary);
}

.features {
    background-color: var(--color-secondary);
}

.contact {
    background-color: var(--color-primary);
}

/* Card Section Styles - Palette from variables.css */
.card-section {
    background: linear-gradient(135deg, var(--color-secondary) 60%, var(--color-tertiary) 100%);
    padding: 60px 0;
    position: relative;
}

/* SVG pattern overlay for subtle texture */
.card-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.10;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="2" fill="%23d1d2f7"/></svg>');
    background-repeat: repeat;
}

.card {
    background: var(--color-background);
    box-shadow: 0 8px 32px rgba(109,76,185,0.10), 0 1.5px 6px rgba(109,76,185,0.08);
    border-radius: 18px;
    padding: 40px 32px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: var(--z-raised, 5);
    border: 1.5px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(109,76,185,0.18), 0 2px 8px rgba(109,76,185,0.10);
}

.card h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.card p, .card h3 {
    color: var(--color-text);
}

/* Feature List Styling */
.feature-list {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.feature-item {
    background: linear-gradient(120deg, var(--color-tertiary) 60%, var(--color-secondary) 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(109,76,185,0.07);
    padding: 24px 18px;
    min-width: 220px;
    flex: 1 1 220px;
    text-align: center;
    margin-bottom: 12px;
    transition: transform 0.2s;
    color: var(--color-text);
}

.feature-item:hover {
    transform: translateY(-4px) scale(1.03);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* Contact Card Special Styling */
.contact-card {
    background: linear-gradient(120deg, var(--color-secondary) 80%, var(--color-tertiary) 100%);
    border: 1.5px solid var(--color-border);
}

.contact-card h2 {
    color: var(--color-primary);
}

.contact-card a.cta-button {
    margin-top: 18px;
}

h1, h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

p {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-size: 1.2rem;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--color-footer-bg);
    margin-top: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #fff;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--color-tertiary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.feature-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex-basis: 30%;
    margin: 20px;
    padding: 30px;
    background-color: var(--color-tertiary);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.logo-container {
    width: 60%;
    margin: 0 auto;
}

.logo {
    width: 100%;
    height: auto;

}

.logo path {
    fill: var(--color-text);
}

.image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background-color: #444;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #777;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: var(--z-controls, 40);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 3px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .feature-item {
        flex-basis: 100%;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(39, 37, 43, 0.9); /* Fondo semi-transparente */
        backdrop-filter: blur(10px); /* Efecto de fondo borroso */
        width: 70%;
        height: 100vh;
        z-index: var(--z-menu, 30);
        padding: 80px 30px 30px; /* Aumentado el padding */
        transition: 0.3s;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 20px 0; /* Aumentado el margen vertical */
        text-align: left; /* Alineación a la izquierda */
    }

    .nav-menu a {
        font-size: 1.2rem; /* Tamaño de fuente aumentado */
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .logo-container {
        max-width: 70%;
    }

    h1, h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .feature-list {
        flex-direction: column;
        gap: 18px;
    }
    .card {
        padding: 28px 10px;
    }
}

@media (max-width: 600px) {
    .card-section {
        padding: 32px 0;
    }
    .card {
        padding: 18px 4px;
    }
}

/* --- Merged from frontpage_custom.css --- */
.feature-icon svg {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), filter 0.3s cubic-bezier(.4,0,.2,1);
}
.feature-item:hover .feature-icon svg {
    transform: scale(1.15) rotate(-4deg);
    filter: drop-shadow(0 2px 8px #7c3aed88);
}
/* Only add .feature-item:hover box-shadow and border-color if not present */
.feature-item:hover {
    box-shadow: 0 4px 24px #7c3aed22;
    border-color: #7c3aed;
}
.cta-button {
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cta-button:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 12px #7c3aed55;
    transform: scale(1.05);
}
.header-logo {
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.header-logo:hover {
    transform: scale(1.08) rotate(-2deg);
}
.gallery-section {
  width: 100%;
  background: var(--background, #181820);
  border-top: 1px solid var(--border, #22223a);
  border-bottom: 1px solid var(--border, #22223a);
  padding: 32px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-ribbon {
  width: 100%;
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-track {
  display: flex;
  gap: 32px;
  animation: gallery-scroll 20s linear infinite;
}
.gallery-img {
  min-width: 480px;
  height: 270px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px var(--primary, #7c3aed22);
  border: 2px solid var(--border, #22223a);
  background: var(--card, #23232a);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.gallery-img:hover {
  box-shadow: 0 4px 24px var(--primary, #7c3aed44);
  transform: scale(1.04);
  border-color: var(--primary, #7c3aed);
}
@keyframes gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .gallery-img { min-width: 320px; height: 180px; }
  .gallery-track { gap: 16px; }
}
@media (max-width: 600px) {
  .gallery-img { min-width: 180px; height: 100px; }
  .gallery-section { padding: 16px 0; }
}

