/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-congreso { background: #4A90E2; color: white; }
.nav-colaboradores { background: #F5A623; color: white; }
.nav-noticias { background: #7ED321; color: white; }
.nav-mapa { background: #50E3C2; color: white; }
.nav-federacion { background: #D0021B; color: white; }
.nav-asociaciones { background: #9013FE; color: white; }
.nav-contacto { background: #FF6900; color: white; }

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-link.active {
    border: 2px solid #333;
}

/* ===== HERO (PC por defecto) ===== */
.hero{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 300px;
  padding: 40px 20px;
  margin-top: 0;          /* quita el empuje extra */
  overflow: hidden;

  /* Fondo por capas: degradado + imagen  */
  /* ¡AJUSTA la ruta a tu estructura! */
  /* Si styles.css está en /css/styles.css y la imagen en /assets/... usa ../assets/ */
  /* Si styles.css está junto a assets/, usa assets/ */
  background-image:
    linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%),
    url('../assets/marina-hero.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed; /* parallax suave en desktop */
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.3);
}

.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-title{
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}

.hero-subtitle{
  font-size: 2rem;
  font-weight: 400;
  color: #F5A623;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,.3);
}

.hero-description{
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  opacity: .9;
}

/* ===== MÓVILES (hasta 600px) ===== */
@media (max-width: 600px){
  .hero{
    min-height: 250px;
    padding: 30px 15px;
    background-attachment: scroll; /* iOS evita flicker del fixed */
  }
  .hero-title{ font-size: 2rem; }
  .hero-subtitle{ font-size: 1.2rem; }
  .hero-description{ font-size: .95rem; }
}

/* ===== TABLETS (601–991px, iPad incluido) ===== */
@media (min-width: 601px) and (max-width: 991px){
  .hero{
    min-height: 320px;
    padding: 45px 20px;
    background-attachment: scroll; /* más suave en tablets */
  }
  .hero-title{ font-size: 2.2rem; }
  .hero-subtitle{ font-size: 1.4rem; }
  .hero-description{ font-size: 1rem; }
}


/* Secciones generales */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #F5A623);
    border-radius: 2px;
}

/* Introducción */
.intro {
    padding: 80px 0;
    background: #f8f9fa;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.intro-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Metodología */
.methodology {
    padding: 80px 0;
    background: white;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.methodology-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.methodology-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.methodology-card p {
    color: #666;
    line-height: 1.6;
}

/* Comisiones */
.commissions {
    padding: 80px 0;
    background: #f8f9fa;
}

.commissions-grid {
    display: grid;
    gap: 3rem;
}

.commission-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.commission-header {
    padding: 2rem;
    position: relative;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.commission-header:hover {
    transform: translateY(-2px);
}

.commission-header::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.commission-header.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.commission-operations .commission-header { background: linear-gradient(135deg, #4A90E2, #357ABD); }
.commission-admin .commission-header { background: linear-gradient(135deg, #7ED321, #5CB85C); }
.commission-sustainability .commission-header { background: linear-gradient(135deg, #50E3C2, #17A2B8); }
.commission-legal .commission-header { background: linear-gradient(135deg, #F5A623, #E67E22); }
.commission-strategy .commission-header { background: linear-gradient(135deg, #D0021B, #C0392B); }

.commission-number {
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.commission-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.commission-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.commission-count {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.commission-content {
    padding: 2rem;
    display: none; /* Inicialmente oculto */
    animation: slideDown 0.3s ease-out;
}

.commission-content.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topics-grid {
    display: grid;
    gap: 1rem;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.commission-operations .topic-item { border-left-color: #4A90E2; }
.commission-admin .topic-item { border-left-color: #7ED321; }
.commission-sustainability .topic-item { border-left-color: #50E3C2; }
.commission-legal .topic-item { border-left-color: #F5A623; }

.topic-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.topic-name {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    margin-right: 1rem;
}

.topic-docs {
    display: flex;
    gap: 0.5rem;
}

.doc-link {
    padding: 0.3rem 0.8rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.doc-link:hover {
    background: #495057;
    transform: translateY(-1px);
}

.commission-operations .doc-link:hover { background: #4A90E2; }
.commission-admin .doc-link:hover { background: #7ED321; }
.commission-sustainability .doc-link:hover { background: #50E3C2; }
.commission-legal .doc-link:hover { background: #F5A623; }

/* Estrategia - descripción especial */
.strategy-description {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #D0021B;
}

.strategy-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.strategy-description p:last-child {
    margin-bottom: 0;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #F5A623;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #F5A623;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F5A623;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #F5A623;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .nav {
        display: none; /* Simplificado para móvil */
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .topic-docs {
        width: 100%;
        justify-content: flex-end;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .commission-header {
        padding: 1.5rem;
    }
    
    .commission-content {
        padding: 1.5rem;
    }
}

/* Estilos adicionales para las descripciones de comisiones */

.commission-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid transparent;
}

.commission-operations .commission-description { border-left-color: #4A90E2; }
.commission-admin .commission-description { border-left-color: #7ED321; }
.commission-sustainability .commission-description { border-left-color: #50E3C2; }
.commission-legal .commission-description { border-left-color: #F5A623; }
.commission-strategy .strategy-description { border-left-color: #D0021B; }

.commission-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.commission-description p:last-child {
    margin-bottom: 0;
}

.commission-description strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Estilos para botón CTA en hero - usa la misma clase que el botón inferior */
.hero .cta-button {
    margin-top: 2rem;
}

/* Estilos para información de participación */
.participation-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.participation-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}

.participation-card h3 {
    color: #F5A623;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participation-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Ajuste para metodología con 4 tarjetas (2+2) */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .participation-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .participation-card {
        padding: 1.5rem;
    }
}


