/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(232, 67, 67, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 110px;
  height: 45px;
}

.logo-img2 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e84343;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #e84343;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e84343;
  transition: width 0.3s ease;
}

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

.admin-link {
  background: linear-gradient(135deg, #e84343, #ff6b6b);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  color: white !important;
}

.admin-link::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e84343" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #e84343);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 2rem;
  color: #e84343;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(232, 67, 67, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(232, 67, 67, 0.2);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #e84343;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #e84343, #ff6b6b);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(232, 67, 67, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #e84343;
  border: 2px solid #e84343;
}

.btn-secondary:hover {
  background: #e84343;
  color: white;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-preview {
  width: 100%;
  max-width: 500px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(232, 67, 67, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-preview canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 250px;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-header p {
  font-size: 1.2rem;
  color: #cccccc;
}

/* Fund Info Section */
.fund-info {
  padding: 6rem 0;
  background: #111111;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(232, 67, 67, 0.1);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 67, 67, 0.3);
  box-shadow: 0 15px 35px rgba(232, 67, 67, 0.1);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e84343, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.info-card p {
  color: #cccccc;
  line-height: 1.6;
}

/* Performance Section */
.performance {
  padding: 6rem 0;
  background: #0a0a0a;
}

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

.chart-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chart-container h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
  flex-shrink: 0;
}

.chart-container canvas {
  flex: 1;
  max-height: 300px;
  width: 100% !important;
  height: auto !important;
}

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

.summary-card {
  background: linear-gradient(135deg, rgba(232, 67, 67, 0.1), rgba(255, 107, 107, 0.1));
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(232, 67, 67, 0.2);
}

.summary-card h4 {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e84343;
}

/* Fund Information Section */
.fund-information {
  padding: 6rem 4rem;
  background: #111111;
}

.info-content {
  display: grid;
  padding-bottom: 20px;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.info-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.info-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-block h3 i {
  color: #e84343;
}

.info-block p {
  color: #cccccc;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.distribution-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.distribution-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.distribution-bar {
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #e84343;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.distribution-info {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.percentage {
  font-weight: 700;
  color: #e84343;
  font-size: 1.1rem;
}

.description {
  font-size: 0.9rem;
  color: #cccccc;
}

.info-sidebar {
  display: flex;
  flex-direction: column;
}

.info-card-sidebar {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
  flex-grow: 1; 
}

.info-card-sidebar h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card-sidebar h4 i {
  color: #e84343;
}

.key-data {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-item:last-child {
  border-bottom: none;
}

.data-label {
  color: #cccccc;
  font-size: 0.9rem;
}

.data-value {
  color: #e84343;
  font-weight: 600;
}

.structure-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.structure-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.structure-item i {
  font-size: 1.5rem;
  color: #e84343;
  margin-top: 5px;
  width: 25px;
  text-align: center;
}

.structure-item-content h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.structure-item-content p {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Community Section */
.community {
  padding: 6rem 0;
  background: #0a0a0a;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 67, 67, 0.3);
  box-shadow: 0 15px 35px rgba(232, 67, 67, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e84343, #ff6b6b);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e84343;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.community-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.participation-section,
.requirements-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.participation-section h3,
.requirements-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.participation-section h3 i,
.requirements-section h3 i {
  color: #e84343;
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.participation-card h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.participation-card h4 i {
  color: #e84343;
}

.participation-card p {
  color: #cccccc;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.participation-stat {
  padding: 1rem;
  background: rgba(232, 67, 67, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(232, 67, 67, 0.2);
}

.stat-highlight {
  color: #e84343;
  font-weight: 700;
  font-size: 1.1rem;
}

.requirements-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.requirement-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e84343, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-content h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}


/* ---------- CSS AÑADIDO PARA LA SECCIÓN DE ACCIONISTAS ---------- */
.shareholders-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.shareholders-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shareholders-section h3 i {
  color: #e84343;
}

.shareholders-section p {
  color: #cccccc;
  margin-bottom: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.shareholders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
}

.shareholders-table thead {
  background-color: rgba(232, 67, 67, 0.1);
}

.shareholders-table th {
  color: #ffffff;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(232, 67, 67, 0.2);
}

.shareholders-table tbody td {
  padding: 1rem 1.5rem;
  color: #cccccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.shareholders-table tbody tr:last-child td {
  border-bottom: none;
}

.shareholders-table tbody tr:hover td {
  background-color: rgba(232, 67, 67, 0.05);
}

/* Alineación de columnas numéricas a la derecha para mejor legibilidad */
.shareholders-table th:nth-child(2), .shareholders-table td:nth-child(2),
.shareholders-table th:nth-child(3), .shareholders-table td:nth-child(3) {
  text-align: right;
  font-feature-settings: "tnum"; /* Alinea los números */
}
/* ---------- FIN DEL CSS AÑADIDO ---------- */


/* Contact Section */
.contact {
  padding: 6rem 0;
  background: #111111;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-info p {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.contact-link:hover {
  background: rgba(232, 67, 67, 0.1);
  border-color: rgba(232, 67, 67, 0.3);
  transform: translateX(5px);
}

.contact-link i {
  font-size: 1.5rem;
  color: #e84343;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(232, 67, 67, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e84343;
  box-shadow: 0 0 0 3px rgba(232, 67, 67, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;
}

/* Footer */
.footer {
  background: #0a0a0a;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(232, 67, 67, 0.2);
}

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

.footer-section h3,
.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #cccccc;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #e84343;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #1a1a1a;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(232, 67, 67, 0.2);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: #cccccc;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.close:hover {
  color: #e84343;
}

.modal-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.modal-steps {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(232, 67, 67, 0.1);
}

.step h4 {
  color: #e84343;
  margin-bottom: 0.5rem;
}

.step p {
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 992px) {
  .info-grid,
  .participation-grid,
  .community-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(10, 10, 10, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

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

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    min-width: auto;
    height: 350px;
  }

  .chart-container canvas {
    max-height: 250px;
  }

  .info-grid,
  .participation-grid,
  .community-stats {
    grid-template-columns: 1fr;
  }

  .requirement-step {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(232, 67, 67, 0.3);
  border-radius: 50%;
  border-top-color: #e84343;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #e84343;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b6b;
}