* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 960px;     /* ancho similar al de la imagen  chema lo hizo*/
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-size: 2.5rem;
}

.calculator {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4299e1;
}

/* Estilos para el boton de la calculadora, cada uno de diferente color*/

button {
    width: 100%;
    padding: 1rem;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #3182ce;
}

/* Estilos para los resultados de la calculadora*/
.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* para las cartas de resultados*/

.result-card {
  background-color: #585858;
  padding: 1.2rem;
  border-radius: 10px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.result-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: white;
}


.result-card p {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}
/*La clase .chart-container en tu archivo CSS sirve como un contenedor visual para las gráficas*/

.chart-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

#side-by-side-charts .chart-container {
    margin-top: 0;
}

#side-by-side-charts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/*caja de info*/
.info-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.info-box h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-box ul {
    list-style-type: none;
    padding: 0;
}

.info-box li {
    color: #4a5568;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li:before {
    content: "•";
    color: #4299e1;
    position: absolute;
    left: 0;
    font-weight: bold;
}
/*se substituye el estilo de navegación por uno más simple y moderno chema lo hizo  */
/*Una barra de navegación minimalista y clara que va al principio de la página.*/
.simple-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 999;
  }

  /*Crea una fila horizontal que contiene*/
  .simple-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  
  .brand {
    font-weight: 400;
    font-size: 1.4rem;
    color: #2d2d2d;
    font-family: 'Roboto', sans-serif;
  }
  
  .brand .bold {
    font-weight: 700;
  }
  .brand-link {
    text-decoration: none;
    color: inherit;
  }
  .simple-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
  }
/*Crea los enlaces de navegación en línea, Cada li tiene un separador | entre enlaces:*/

  .simple-links li {
    position: relative;
    padding: 0 0.5rem;
    font-weight: 500;
    color: #444;
  }
  
  .simple-links li + li::before {
    content: "|";
    color: #bbb;
    margin-right: 0.5rem;
    position: absolute;
    left: -0.6rem;
  }
  
  .simple-links a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }
  
  .simple-links a:hover {
    color: #000;
  }
  


/*Mejora la visibilidad de los enlaces de navegación  chema lo hizo */
.navigation-links {
    max-width: 960px;
    margin: 3rem auto;
}
.nav-container h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    white-space: nowrap;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-links a.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    animation: pulse 2s infinite;
}

/*Animacion visual*/ 
@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4); }
    100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
    }

    h1 {
        font-size: 2rem;
    }

    .calculator {
        padding: 1.5rem;
    }

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

    .nav-container h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .comparison-tables {
        grid-template-columns: 1fr;
    }
}

/* Estilos para tablas de comparación */



.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}


.comparison-table td {
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}
/* para el color de las tablas*/
/* para el color azul */
.comparison-table th {
    background-color: #4299e1;
    color: white;
    font-weight: 500;
    padding: 1rem 0.5rem;
}
/* para el color rosa */
.comparison-table.pink th {
  background-color: #df1075;
}

/* Variante naranja/amarillo */
.comparison-table.orange th {
  background-color: #f76514;
}

.comparison-table th:first-child {
    text-align: left;
    padding-left: 1rem;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.comparison-table tr:hover {
    background-color: #f1f5f9;
}



/* table-responsive Estilos para la tabla de inputs y resultados */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.input-table tbody tr:hover {
  background: #f0f4fa;
}
@media (max-width: 700px) {
  .input-table th, .input-table td {
    font-size: 0.95rem;
    padding: 0.3em 0.3em;
  }
  .input-table input[type="number"] {
    width: 70px;
    font-size: 0.95rem;
  }
}



.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: auto;
}

.delete-btn:hover {
    background-color: #fed7d7;
    color: #e53e3e;
}

.empty-message {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 8px;
    margin: 1rem 0;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.table-container {
    margin: 1rem 0;
}

.dynamic-inputs {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4299e1;
}

.dynamic-inputs .input-group {
    margin-bottom: 1rem;
}

.dynamic-inputs .input-group:last-child {
    margin-bottom: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mejoras para los resultados */
.result-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.result-card p {
    transition: color 0.3s ease;
}

.result-card small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .delete-btn {
        font-size: 1rem;
        padding: 2px 4px;
    }
    
    .dynamic-inputs {
        padding: 1rem;
    }
}

/* Animación para cambios de valores */
.result-card p {
    transition: all 0.3s ease;
}

.result-card p.positive {
    animation: pulseGreen 0.5s ease;
}

.result-card p.negative {
    animation: pulseRed 0.5s ease;
}

@keyframes pulseGreen {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #27ae60; }
    100% { transform: scale(1); }
}

@keyframes pulseRed {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #e74c3c; }
    100% { transform: scale(1); }
}

/* Estilos para actualización en vivo */
.dynamic-inputs input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
}

.dynamic-inputs input[type="number"]:valid {
    border-color: #27ae60;
}

.dynamic-inputs input[type="number"]:invalid {
    border-color: #e74c3c;
}

/* Animación para valores que cambian */
.result-card p {
    transition: all 0.3s ease;
}

.result-card p.updating {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Indicador de actualización en vivo */
#indicador-actualizacion {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para la página de inicio */
.welcome-content {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-content p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

/*aqui remplazare algo  chema */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.calculator-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.calculator-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.calculator-card h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 1rem 1rem 0.5rem 1rem;
    font-weight: 600;
}

.calculator-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 1rem 1rem 1rem;
}

.calculator-card .btn-primary {
    margin: 0 1rem 1.5rem 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 6px;
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
    display: inline-block;
}

.calculator-card .btn-primary:hover {
    background-color: #3182ce;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .calculator-card img {
        height: 140px;
    }

    .calculator-card h3 {
        font-size: 1rem;
    }

    .calculator-card p {
        font-size: 0.9rem;
    }

    .calculator-card .btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/*hasat aqui remplazare algo  chema */

/* Estilos adicionales para la página principal */
.section {
    margin-bottom: 3rem;
}

/*colo para la pagina principal*/
.section-title {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #4299e1;
    padding-bottom: 0.5rem;
}
/*colo para la pagina principal-Rosa*/
.section-title {
  color: #2d3748;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #4299e1;
  padding-bottom: 0.5rem;
}
.section-title2 {
  color: #df1075;
  font-size: 2rem;
  margin-bottom: 2rem;
 
  padding-bottom: 0.5rem;
}

/*colo para la pagina principal-Azul*/
.section-title3 {
  color: #02a9cf;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 0.5rem;
}
/*colo para la pagina principal-amarillo*/
.section-title4 {
  color: #f76514;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 0.5rem;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.intro-text strong {
    color: #4299e1;
    font-weight: 600;
}

/* share sustitute lo que gacia  inputs, resultados y comparaciones */
.shared-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shared-table th,
.shared-table td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  text-align: center;
  vertical-align: middle;
}

.shared-table th {
  background-color: #4299e1;
  color: white;
  font-weight: 600;
  text-align: center;
}

.shared-table th:first-child,
.shared-table td:first-child {
  text-align: left;
  font-weight: 500;
  padding-left: 1rem;
}

.shared-table td input[type="number"] {
  width: 100px;
  min-width: 70px;
  max-width: 120px;
  padding: 0.4em 0.6em;
  font-size: 1rem;
  border-radius: 6px;
  text-align: right;
  box-sizing: border-box;
  border: 1px solid #ccc;
}

.shared-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.shared-table tbody tr:hover {
  background-color: #f0f4fa;
  transition: background-color 0.2s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .shared-table {
    font-size: 0.9rem;
  }

  .shared-table th,
  .shared-table td {
    padding: 0.5rem;
  }

  .shared-table td input[type="number"] {
    width: 70px;
    font-size: 0.9rem;
  }
}

.table-title {
    color: #1e40af;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    border-left: 4px solid #3b82f6;
    padding-left: 0.75rem;
}
/*irve para resaltar visualmente una fila completa dentro de una tabla comparativa*/
.highlight-row {
    background-color: #ebf8ff !important;
    font-weight: bold;
    color: #2563eb;
}
/*darle un estilo distintivo a los encabezados de sección*/
.section-title {
    background-color: #f7fafc;
    font-weight: bold;
    text-align: left !important;
}

/* Estilos para los precios de las calculadoras */
#precio-usado {
    background-color: #f0f0f0;
}

/*resaltar visualmente resultados individuales dentro de una sección*/
.result-item {
    margin-bottom: 0.75rem;
    padding: 0.8rem;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 1.05rem;
}

/* Estilos para tabla de comparación final */
.comparison-summary {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comparison-summary th {
    background-color: #3b82f6;
    color: white;
    padding: 1rem;
    text-align: center;
}

.comparison-summary td {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.comparison-summary tr:nth-child(odd) {
    background-color: #f0f7ff;
}

.comparison-summary tr:hover {
    background-color: #e0f2fe;
}

.text-muted {
    color: #64748b;
    font-weight: normal;
    font-size: 0.85em;
}


/* Estilos para tablas de comparación--- reforzar visualmente la fila resaltada con líneas superiores e inferiores más gruesas o notables.

 */
.highlight-row td {
    border-top: 2px solid #93c5fd;
    border-bottom: 2px solid #93c5fd;
}

/* Estilos para valores numéricos */
.negative-value {
    color: #dc2626;
}

.total-value {
    font-weight: 600;
}

.highlight-total {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

/* Estilos para navegación entre secciones */
.navigation-links {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    text-align: center;
}

.navigation-links h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
}

.navigation-links .btn-secondary {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navigation-links .btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .navigation-links {
        padding: 1.5rem;
    }
    
    .navigation-links .btn-secondary {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Para la imagende la portada/ Que se puede sustituir para que otras imagenes sean agregadas */

.hero {
    display: flex;
    justify-content: center;
    background: url('../images/hero.png') no-repeat center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f5f7fa;
    height: 400px;
    position: relative;
    padding: 0;
}

.hero-content {
    max-width: 960px;
    width: 100%;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*Portada de Construyendo las bases de tu futuro financiero*/

.Portada2 {
  display: flex;
  justify-content: center;
  background: url('../images/Portada2.png') no-repeat center center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f7fa;
  height: 400px;
  position: relative;
  padding: 0;
}

.Portada2-content {
  color: white;
  z-index: 2;
  text-align: right;
  max-width: 50%;
}

.Portada2-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

/*Portada de ¿Qué onda con tu futuro financiero?*/
.Portada3 {
  display: flex;
  justify-content: center;
  background: url('../images/Portada3.png') no-repeat center center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f7fa;
  height: 400px;
  position: relative;
  padding: 0;
}
.Portada3-content {
  color: white;
  z-index: 2;
  text-align: right;
  max-width: 50%;
}

.Portada3-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

/*Portada de Gánale a los créditos?*/
.Portada4 {
  display: flex;
  justify-content: center;
  background: url('../images/Portada4.png') no-repeat center center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f7fa;
  height: 400px;
  position: relative;
  padding: 0;
}

.Portada4-content {
  color: white;
  z-index: 2;
  text-align: right;
  max-width: 50%;
}

.Portada-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}


/*buscador de calculadoras chema lo hizo/ aqui se debe modificar solo el color  */
.calculator-search {
    background: #f5f5f5;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    max-width: 1000px;
    margin: -60px auto 2rem auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
  }
  
  .calculator-search-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .search-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
  }
  
  .search-subtitle {
    font-weight: 500;
    font-size: 0.95rem;
    color: #666;
    margin-top: 4px;
  }
  
  .search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .search-form input {
    width: 100%;
    min-width: 200px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #e9eef4;
  }
  
  .search-form select {
    width: 100%;
    min-width: 200px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #e9eef4 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
  }
  
  .search-form select option {
    padding: 0.5rem;
    background-color: white;
    color: #2d3748;
  }
  
  .search-form select option[value=""] {
    color: #718096;
    font-style: italic;
  }
  
  .search-form select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
  }
  
  /* Estilos adicionales para asegurar que el select funcione correctamente */
  .calculator-search .search-form select {
    background-color: #e9eef4 !important;
    border: 1px solid #ddd !important;
    color: #2d3748 !important;
  }
  
  .calculator-search .search-form select:focus {
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1) !important;
  }
  
  .search-form button {
    background: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .search-form button:hover {
    background: #333;
  }
/*color de la linea de la calculadora*/

  .search-bar {
    height: 6px;
    background-color: #88b71d;
    width: 30%;
    border-radius: 10px;
    margin-top: 1.9rem;
  }

  .search-barP {
    height: 6px;
    background-color: #df1075;
    width: 30%;
    border-radius: 10px;
    margin-top: 1.9rem;
  }
  .search-barB {
    height: 6px;
    background-color: #02a9cf;
    width: 30%;
    border-radius: 10px;
    margin-top: 1.9rem;
  }
  .search-barY {
    height: 6px;
    background-color: #f76514;
    width: 30%;
    border-radius: 10px;
    margin-top: 1.9rem;
  }
  .search-bar.pink {
    background-color: #e91e63; /* Rosa fuerte */
  }
  /*hasta aca termina el estilo del buscador de calculadoras*/

  /*estilo para el bloque de introducción */
  .intro-block {
    text-align: center;
    max-width: 960px;
    margin: 3rem auto 4rem auto; /* Más separación abajo */
    padding: 0 1rem;
  }
  
  .intro-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }
  
  .intro-block h2 span {
    display: block;
    font-weight: 900;
    font-size: 1.7rem;
    color: #f76514;
    margin-top: 0.75rem;
  }
  
  .intro-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-top: 1.5rem;
  }
  
  .intro-block p strong {
    color: #f76514;
    font-weight: 700;
  }
  
  /*seccion card para controlar el tamaño de cada seccion*/
  .section-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 1px 10px;
    text-align: center;
    background-color: transparent;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Tarjeta uniforme */
  .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 520px; /* Forzamos altura uniforme */
    width: 300px;
    text-align: center;
    background: transparent;
    padding-bottom: 30px;
    box-shadow: none;
    border: none;
  }
  
  /* Imagenes, el tamaño de las imagenes que se quieran agregar*/
  .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  /* Icono encima del título */
  .icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 10px auto;
    color: #fff;
  }
  
  .icon.pink {
    background-color: #df1075;
  }
  .icon.blue {
    background-color: #02a9cf;
  }
  .icon.orange {
    background-color: #f76514;
  }
  
  /* Contenido organizar verticalmente el contenido textual de cada tarjeta*/
  .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 20px;
  }
  
  .card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0 8px;
    line-height: 1.4;
  }
  
  .card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
  }
  
  /* Se agrega el estilo propio para la parte final de la pagina */

  .line {
    height: 5px;
    width: 90%;
    margin: 20px auto 0;
    border-radius: 4px;
  }
  
  .line.pink {
    background-color: #e91e63;
  }
  .line.blue {
    background-color: #00bcd4;
  }
  .line.orange {
    background-color: #ff5722;
  }
  
  /* Botón */
  .card a {
    margin-top: 8px;
    font-weight: 500;
    color: blue;
    text-decoration: underline;
  }
  
 /* Finanzas */
 .otros-temas {
    background: transparent;
    margin-top: -50px;  
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .otros-temas h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
  }
  
  .otros-temas .subtexto {
    font-size: 1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
  }
  
  .temas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fuerza 4 columnas */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  @media (max-width: 1024px) {
    .temas-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 por fila en tablets */
    }
  }
  
  @media (max-width: 600px) {
    .temas-grid {
      grid-template-columns: 1fr; /* 1 por fila en móviles */
    }
  }      
  
  .tema-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
  }
  
  .tema-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  }
  
  .tema-icon {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  .tema-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2d3748;
  }
  
  .tema-card p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 1.2rem;
    line-height: 1.4;
  }
  
  .btn-verde {
    background-color: #88b71d;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .btn-verde:hover {
    background-color: #76a114;
  }

/* Estilos para el avatar/ no mover por favor */

.avatar-strip {
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-bottom: 0;
    vertical-align: bottom; /* 👈 ESTA LÍNEA elimina espacio invisible debajo */
  }
  
/* Estilos para el folder */
.footer {
    margin-top: 0;        /* 👈 Quita el espacio arriba del footer */
    padding-top: 20px;    /* Si necesitas separación interior */
    background-color: #464646; /* O tu color */
    color: white;
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .logo-bold {
    color: #fff;
    background-color: #ff6600;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 8px;
  }
  
  .footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .footer-column {
    flex: 1 1 180px;
    min-width: 150px;
  }
  
  .footer-column h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .footer-column p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .footer-social {
    display: flex;
    gap: 15px;
  }
  
  .footer-social a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
  }
  
  .footer-social a:hover {
    color: #ff6600;
  }

  .footer-column h4 a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .footer-column h4 a:hover {
    color: #ff6600; /* o el color de tu marca */
    text-decoration: underline;
  }
/* Estilos para enlaces de  las calculadoras, funciona para las 3 ventanas  */
/* Bloque general reutilizable con tarjetas */
/*Cambiar el color de esta seccioón

.btn-general {
  background-color: #df1075;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-general:hover {
  background-color: #df1075;
}
*/


.bloque-generico {
  background: transparent;
  padding: 4rem 1rem;
  text-align: center;
  margin-top: -50px;
}

.bloque-generico .titulo-seccion {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.bloque-generico .subtexto {
  font-size: 1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.grid-tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .grid-tarjetas {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.tarjeta {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.tarjeta .icono {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.tarjeta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2d3748;
  text-align: center;
}

.tarjeta p {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 1.2rem;
  line-height: 1.4;
  text-align: center;
}

/* color de los botones*/

.btn-general {
  background-color: #df1075;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-general:hover {
  background-color: #df1075;
}

.btn-general-B {
  background-color: #02a9cf;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-general-B:hover {
  background-color: #4299e1;
}

.btn-general-Y {
  background-color: #f76514;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-general-Y:hover {
  background-color: #f76514;
}

/* para la descripción de la sección de introducción */

.subintro {
  font-size: 1.1rem;
  color: #4a5568;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.error {
  display: none;
  color: #e53e3e;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/*este apartado sustotuye este 

.error-message {
    animation: shake 0.5s ease-in-out;
}
    

/* NUEVO diseño de resumen compacto */

/* Estilos para la funcionalidad de búsqueda */
.resultados-container {
    margin-top: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.contador-resultados {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
    text-align: center;
}

.contador-resultados.sin-resultados {
    color: #e53e3e;
}

/* Mensaje de bienvenida */
.mensaje-bienvenida {
    text-align: center;
    padding: 3rem 1rem;
    color: #4a5568;
}

.bienvenida-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mensaje-bienvenida h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mensaje-bienvenida p {
    margin-bottom: 2rem;
    color: #718096;
    line-height: 1.6;
}

.ejemplos-busqueda {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ejemplo-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.ejemplo-tag:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Indicador de búsqueda */
.buscando {
    text-align: center;
    padding: 3rem 1rem;
    color: #4a5568;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.buscando p {
    color: #718096;
    font-size: 1rem;
}

.resultado-calculadora {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.resultado-icono {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    min-width: 60px;
    text-align: center;
}

.resultado-contenido {
    flex: 1;
}

.resultado-contenido h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resultado-contenido p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resultado-metadata {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seccion-tag, .tema-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.seccion-tag {
    background: #fed7d7;
    color: #c53030;
}

.tema-tag {
    background: #c6f6d5;
    color: #2f855a;
}

.btn-calcular {
    background: #4299e1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-calcular:hover {
    background: #3182ce;
}

.no-resultados {
    text-align: center;
    padding: 3rem 1rem;
    color: #4a5568;
}

.no-resultados p:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.no-resultados p:last-child {
    color: #718096;
}

/* Estilos para los botones de búsqueda */
.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input,
.search-form select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: #4299e1;
}

.search-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.search-form select option {
    padding: 0.5rem;
    background-color: white;
    color: #2d3748;
}

.search-form select option[value=""] {
    color: #718096;
    font-style: italic;
}

.search-form select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-form button {
    width: auto;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

#btn-limpiar {
    background: #718096;
}

#btn-limpiar:hover {
    background: #4a5568;
}

/* Responsive para la búsqueda */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
    }
    
    .search-form select {
        background-position: right 0.5rem center;
        padding-right: 2rem;
    }
    
    .resultado-calculadora {
        flex-direction: column;
        text-align: center;
    }
    
    .resultado-icono {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .resultado-metadata {
        justify-content: center;
    }
    
    .btn-calcular {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .ejemplos-busqueda {
        gap: 0.25rem;
    }
    
    .ejemplo-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .mensaje-bienvenida {
        padding: 2rem 1rem;
    }
    
    .bienvenida-icono {
        font-size: 2.5rem;
    }
    
    .mensaje-bienvenida h3 {
        font-size: 1.3rem;
    }
}

#resultado-contenido {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

/* Estilos para iconos sociales */
.social-icons-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-icon-top {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-icon-top:hover {
  transform: scale(1.1);
}

/* Buscador compacto para calculadoras */
.calculator-search.compact {
  padding: 1rem 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e2e8f0;
}

.calculator-search.compact .calculator-search-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.calculator-search.compact .search-header {
  display: none;
}

.calculator-search.compact .search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.calculator-search.compact .search-form select,
.calculator-search.compact .search-form input {
  padding: 0.5rem;
  font-size: 0.9rem;
  min-width: 150px;
}

.calculator-search.compact .search-form button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.calculator-search.compact .contador-resultados {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.calculator-search.compact .resultados-container {
  margin-top: 0.5rem;
}

/* Estilos adicionales para páginas de información */
/* Estilos para textarea */
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Mejoras para las tarjetas de resultados en páginas de información */
.info-box .results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-box .result-card {
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  color: #2d3748;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box .result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-box .result-card h3 {
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.info-box .result-card p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.info-box .result-card p:last-child {
  margin-bottom: 0;
}

/* Estilos para formularios en páginas de información */
.calculator form {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.calculator form h3 {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  text-align: center;
}

/* Estilos para newsletter y formularios de suscripción */
.newsletter-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.newsletter-form button {
  width: auto;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

/* Estilos para iconos en las tarjetas */
.result-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-card h3::before {
  font-size: 1.2em;
}

/* Mejoras para botones en páginas de información */
.info-box .btn-general {
  margin-top: 1rem;
  display: inline-block;
  width: auto;
  padding: 0.75rem 1.5rem;
}

/* Estilos para listas en info-box */
.info-box ul {
  list-style-type: none;
  padding: 0;
}

.info-box li {
  color: #4a5568;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.info-box li:before {
  content: "•";
  color: #4299e1;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.info-box li strong {
  color: #2d3748;
  font-weight: 600;
}

/* Estilos para fechas y metadatos */
.result-card .fecha {
  color: #718096;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Responsive para páginas de información */
@media (max-width: 768px) {
  .info-box .results {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .newsletter-form input[type="email"] {
    min-width: auto;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .calculator form {
    padding: 1.5rem;
  }
  
  .info-box .btn-general {
    width: 100%;
    text-align: center;
  }
}

/* Estilos para listas y elementos de formulario en calculadoras */
.calculator select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.calculator select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.calculator select:hover {
    border-color: #cbd5e0;
}

.calculator select option {
    padding: 0.5rem;
    background-color: white;
    color: #2d3748;
}

.calculator select option:checked {
    background-color: #4299e1;
    color: white;
}

/* Estilos para listas con emojis y mejor espaciado */
.calculator .input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.calculator .input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.calculator .input-group label span {
    font-size: 1.2em;
    line-height: 1;
}

/* Estilos para inputs con iconos */
.calculator .input-group input[type="number"],
.calculator .input-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.calculator .input-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.calculator .input-group input:hover {
    border-color: #cbd5e0;
}

/* Estilos para grupos de inputs en línea */
.calculator .input-group.inline {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.calculator .input-group.inline label {
    flex-shrink: 0;
    margin-bottom: 0;
    min-width: 120px;
}

.calculator .input-group.inline input,
.calculator .input-group.inline select {
    flex: 1;
}

/* Estilos para inputs con iconos integrados */
.calculator .input-group.with-icon {
    position: relative;
}

.calculator .input-group.with-icon input,
.calculator .input-group.with-icon select {
    padding-left: 2.5rem;
}

.calculator .input-group.with-icon::before {
    content: attr(data-icon);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    pointer-events: none;
    z-index: 1;
}

/* Estilos para mensajes de ayuda */
.calculator .input-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #718096;
    font-style: italic;
}

/* Estilos para validación visual */
.calculator .input-group input:valid,
.calculator .input-group select:valid {
    border-color: #48bb78;
}

.calculator .input-group input:invalid:not(:placeholder-shown),
.calculator .input-group select:invalid:not(:placeholder-shown) {
    border-color: #f56565;
}

/* Estilos para grupos de inputs en grid */
.calculator .input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Estilos para secciones de formulario */
.calculator .form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.calculator .form-section h2 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator .form-section h2 span {
    font-size: 1.3em;
}

.calculator .form-section p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Estilos para tablas de entrada */
.calculator .input-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator .input-table th {
    background: #4299e1;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.calculator .input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.calculator .input-table td:last-child {
    border-bottom: none;
}

.calculator .input-table input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.calculator .input-table input[type="number"]:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
}

/* Estilos responsivos para formularios */
@media (max-width: 768px) {
    .calculator .input-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator .input-group.inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calculator .input-group.inline label {
        min-width: auto;
    }
    
    .calculator .form-section {
        padding: 1rem;
    }
    
    .calculator .input-table {
        font-size: 0.9rem;
    }
    
    .calculator .input-table th,
    .calculator .input-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .calculator .input-table input[type="number"] {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
}

/* Estilos para colores dinámicos en resultados */
.result-value {
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.result-value.positive {
    color: #48bb78;
}

.result-value.negative {
    color: #f56565;
}

.result-value.warning {
    color: #ed8936;
}

.result-value.neutral {
    color: #a0aec0;
}

/* Colores específicos para libertad financiera */
.result-value.libertad-excelente {
    color: #48bb78;
    animation: pulseGreen 2s infinite;
}

.result-value.libertad-buena {
    color: #38a169;
}

.result-value.libertad-regular {
    color: #ed8936;
}

.result-value.libertad-mala {
    color: #f56565;
    animation: pulseRed 2s infinite;
}

.result-value.ingresos-altos {
    color: #48bb78;
}

.result-value.ingresos-bajos {
    color: #f56565;
}

.result-value.gastos-altos {
    color: #f56565;
}

.result-value.gastos-bajos {
    color: #48bb78;
}

/* Animaciones para resultados importantes */
@keyframes pulseGreen {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulseRed {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Estilos para indicadores de estado */
.result-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.result-indicator.excelente {
    background-color: #48bb78;
}

.result-indicator.buena {
    background-color: #38a169;
}

.result-indicator.regular {
    background-color: #ed8936;
}

.result-indicator.mala {
    background-color: #f56565;
}

/* Estilos para mensajes de estado */
.status-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.status-message.excelente {
    background-color: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.status-message.buena {
    background-color: rgba(56, 161, 105, 0.1);
    color: #38a169;
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.status-message.regular {
    background-color: rgba(237, 137, 54, 0.1);
    color: #ed8936;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.status-message.mala {
    background-color: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}
