:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --success: #4cc9f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #ffffff;
}

.XXcontainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.XXnav-links {
    display: flex;
    gap: 30px;
}

.XXnav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.XXnav-links a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* Button Styles */
.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--secondary);
}

.secondary-button {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.secondary-button:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Section */
.XXhero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
    line-height:1.2;
}

.hero p {
    font-size: 20px;
    color: #555;
/*   max-width: 700px;*/
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Clients Section */
.clients {
    padding: 60px 0;
    background-color: #e4e5e7;
}

.trusted-by {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-carousel {
    margin: 0 auto;
    max-width: 900px;
}

.client-item {
    text-align: center;
    padding: 20px;
}

.client-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 18px;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    line-height:1.2;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 15px auto 0;
    font-size:20px;
    line-height:1.25;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: #666;
}

/* static/css/main.css */
.XXlanguage-switcher {
    position: absolute;
    top: 25px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.XXlanguage-switcher a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

.XXlanguage-switcher a.active {
    color: var(--primary);
    font-weight: 700;
}


/* Estilos del footer */
.site-footer {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 60px 0 20px;
    font-size: 14px;
}

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

.footer-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #4361ee;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-item i {
    margin-right: 10px;
    color: #4361ee;
    margin-top: 3px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #4361ee;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #dddddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4361ee;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4361ee;
    transform: translateY(-3px);
}

.newsletter h5 {
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.newsletter-form button {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #3a56d4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #aaaaaa;
}

.legal-links a {
    color: #aaaaaa;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #4361ee;
}

.legal-links span {
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Estilos del Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

/* Menú Hamburguesa */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Contenedor de navegación */
.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4361ee;
}

.auth-buttons {
    display: flex;
    margin-left: 20px;
}

/* Selector de idioma */
.mobile-language-switcher {
    /*display: none;*/
    margin-left: 15px;
}

.language-switcher {
    position: absolute;
    right: 20px;
    top: 15px;
}

.language-switcher a, 
.mobile-language-switcher a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.language-switcher a.active, 
.mobile-language-switcher a.active {
    color: #4361ee;
    font-weight: 700;
}

/* Estilos Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .auth-buttons {
        margin: 20px 0 0;
        width: 100%;
    }
    
    .language-switcher {
        display: none;
    }
    
    .mobile-language-switcher {
        display: block;
        margin-top: 30px;
        width: 100%;
    }
}


/* nueva seccion */

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-slide {
    position: relative;
    height: 400px;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.slide-caption p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

/* Slick Carousel Custom Styles */
.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    color: white;
    opacity: 0.5;
    font-size: 10px;
}

.slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
        margin: 0 auto;
        padding-top: 40px;
    }
    
    .hero-carousel {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 300px;
    }
    
    .slide-caption {
        padding: 20px;
    }
    
    .slide-caption p {
        font-size: 1rem;
    }
}

/* seccion noticias */

/* Sección de Resumen */
.resumen-section {
    padding: 80px 0;
    background-color: #f9fafc;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.resumen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resumen-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resumen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.resumen-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.resumen-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.resumen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.resumen-card:hover .resumen-image {
    transform: scale(1.05);
}

.resumen-image-placeholder {
    width: 100%;
    height: 100%;
    background: #e8ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 3rem;
}

.resumen-content {
    padding: 20px;
}

.resumen-titulo {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    line-height: 1.4;
}

.resumen-fecha {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.resumen-descripcion {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.resumen-leer-mas {
    color: #4361ee;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.resumen-card:hover .resumen-leer-mas {
    color: #3a56d4;
}

/* Responsive */
@media (max-width: 768px) {
    .resumen-grid {
        grid-template-columns: 1fr;
    }
    
    .resumen-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .resumen-image-container {
        height: 160px;
    }
    
    .resumen-content {
        padding: 15px;
    }
    
    .resumen-titulo {
        font-size: 1.1rem;
    }
}

/* privacidad */

/* Estilos específicos para la página legal */
.legal-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.legal-content {
    flex: 1;
    padding: 40px 0 80px;
}

.legal-title {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}

.legal-update {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

.legal-section p {
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section address {
    font-style: normal;
    margin-top: 15px;
}

.legal-section a {
    color: #4361ee;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 30px 0 60px;
    }
    
    .legal-title {
        font-size: 1.8rem;
    }
}

/* cookies */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookies-table th, .cookies-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookies-table th {
    background-color: var(--light-primary);
    color: var(--primary-dark);
}

.browser-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.browser-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.browser-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .cookies-table {
        display: block;
        overflow-x: auto;
    }
}

/* Estilos para los mensajes flash */
#flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.alert {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.alert.show {
  opacity: 1;
  transform: translateX(0);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

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

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}
