/* Estilos para el sitio ainudeES.site - CSS */

/* Paleta de colores inspirada en España */
:root {
    --rojo-españa: #c60b1e;    /* Rojo de la bandera española */
    --amarillo-españa: #ffc400; /* Amarillo de la bandera española */
    --azul-acento: #0057b8;     /* Azul para acentos */
    --negro-español: #222222;   /* Negro para textos */
    --text-oscuro: #222222;     /* Texto oscuro */
    --text-claro: #ffffff;      /* Texto claro */
    --bg-claro: #f9f9f9;        /* Fondo claro */
    --bg-oscuro: #111111;       /* Fondo oscuro */
    --sombra: rgba(0, 0, 0, 0.15); /* Sombra */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-oscuro);
    background-color: var(--bg-claro);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--azul-acento);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rojo-españa);
}

/* Tipografía */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    color: var(--text-claro);
}

h2 {
    font-size: 2.5rem;
    color: var(--rojo-españa);
}

h3 {
    font-size: 1.5rem;
    color: var(--rojo-españa);
}

p {
    margin-bottom: 20px;
}

/* Botones */
.primary-button {
    display: inline-block;
    background-color: var(--amarillo-españa);
    color: var(--text-oscuro);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(198, 11, 30, 0.2);
}

.primary-button:hover {
    background-color: var(--rojo-españa);
    color: var(--text-claro);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(198, 11, 30, 0.4);
}

.pulse-button {
    position: relative;
}

/* Header */
.site-header {
    background-color: var(--rojo-españa);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sombra);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

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

/* Navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-claro);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--amarillo-españa);
    transition: width 0.3s ease;
}

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

.nav-links .primary-button {
    padding: 8px 20px;
    margin-left: 15px;
}

/* Menu Móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    background-color: var(--text-claro);
    transition: all 0.3s ease;
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--text-claro);
    transition: all 0.3s ease;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    top: 8px;
}

/* Sección Hero */
.hero-section {
    background: linear-gradient(135deg, #c60b1e, #aa0a1a);
    color: var(--text-claro);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    z-index: 1;
    opacity: 0.2;
}

.spain-pattern-element {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 196, 0, 0.3) 10%, transparent 10%),
    radial-gradient(circle, rgba(198, 11, 30, 0.3) 10%, transparent 10%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    border-radius: 50%;
    opacity: 0.6;
}

/* Sección de Características */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-claro);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--rojo-españa), var(--amarillo-españa));
    border-radius: 3px;
}

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

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--sombra);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--sombra);
    border-bottom: 3px solid var(--amarillo-españa);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.spain-style-icon {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-claro), white);
    color: var(--rojo-españa);
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px var(--sombra);
    position: relative;
    border: 2px solid var(--amarillo-españa);
}

.spain-style-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed var(--rojo-españa);
    animation: spin 20s linear infinite;
}

.spain-icon {
    width: 40px;
    height: 40px;
    color: var(--rojo-españa);
}

/* Sección Cómo Funciona */
.how-works-section {
    padding: 80px 0;
    background-color: #f1f1f1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c60b1e' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: relative;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rojo-españa), #aa0a1a);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-claro);
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(198, 11, 30, 0.3);
    border: 2px solid var(--amarillo-españa);
}

.step-number:after {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--rojo-españa), transparent);
}

.process-step:last-child .step-number:after {
    display: none;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* Sección de Modelos */
.models-section {
    padding: 80px 0;
    background-color: var(--bg-claro);
}

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

.model-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--sombra);
    border-top: 5px solid transparent;
}

.model-card:nth-child(1) {
    border-top-color: #aaa;
}

.model-card:nth-child(2) {
    border-top-color: var(--amarillo-españa);
}

.model-card:nth-child(3) {
    border-top-color: var(--rojo-españa);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--sombra);
}

.model-card h3 {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.model-features {
    list-style: none;
    margin-bottom: 20px;
}

.model-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.model-features li:before {
    content: '✓';
    color: var(--rojo-españa);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.model-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--rojo-españa);
    color: var(--text-claro);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.models-cta {
    text-align: center;
    margin-top: 30px;
}

/* Sección FAQ */
.faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c60b1e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--sombra);
    background: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px var(--sombra);
}

.faq-question {
    padding: 20px;
    background-color: white;
    color: var(--text-oscuro);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--amarillo-españa);
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--rojo-españa);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--rojo-españa);
    color: var(--text-claro);
}

.faq-item.active .faq-question:after {
    content: '-';
    color: var(--amarillo-españa);
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Banner CTA */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--rojo-españa), #aa0a1a);
    color: var(--text-claro);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--text-claro);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.spain-decoration-element {
    position: absolute;
    width: 500px;
    height: 500px;
    right: -100px;
    bottom: -100px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='12' viewBox='0 0 60 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffc400' fill-opacity='0.2'%3E%3Cpath d='M12 0h6v12h-6V0zm12 0h6v12h-6V0zm12 0h6v12h-6V0zm12 0h6v12h-6V0zm6 0h6v12h-6V0z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-20deg);
    z-index: 1;
}

/* Footer */
.site-footer {
    background-color: var(--bg-oscuro);
    color: #999;
    padding: 60px 0 30px;
    position: relative;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-logo {
    margin-bottom: 30px;
    max-width: 300px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-favicon {
    margin-top: 15px;
}

.footer-favicon img {
    width: 40px;
    height: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-links-column {
    margin-right: 60px;
    min-width: 150px;
}

.footer-links-column h3 {
    color: var(--text-claro);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: #999;
    transition: all 0.3s ease;
}

.footer-links-column a:hover {
    color: var(--amarillo-españa);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.spain-pattern-footer {
    height: 10px;
    width: 100%;
    background: linear-gradient(90deg, var(--rojo-españa) 50%, var(--amarillo-españa) 50%);
    background-size: 100px 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Animaciones */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(198, 11, 30, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(198, 11, 30, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(198, 11, 30, 0.3);
    }
}

.page-loaded .feature-card,
.page-loaded .process-step,
.page-loaded .model-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-fade-right {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Elementos decorativos españoles */
.spanish-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--amarillo-españa);
    opacity: 0.1;
    z-index: 0;
}

/* Estilos Responsivos */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-decoration {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--rojo-españa);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        z-index: 1000;
        padding: 80px 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-toggle.active .hamburger-icon {
        background-color: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger-icon:before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-icon:after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .footer-main {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-links-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 20px;
    }
    
    .step-number:after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .primary-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}
