/* --- GOOGLE FONT & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- VARIABLES DE COLOR Y ESTILOS GLOBALES --- */
:root {
    --primary-gradient: linear-gradient(135deg, #005bea, #00c6fb);
    --primary-color: #007bff;
    --secondary-color: #00c6fb;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
    animation: fadeIn 0.5s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; color: var(--dark-color); }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }

/* --- ANIMACIONES --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.main-header {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}
.main-header nav ul {
    list-style: none;
    display: flex;
}
.main-header nav ul li { margin-left: 30px; }
.main-header nav a {
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}
.main-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
}
.main-header nav a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    background: var(--primary-gradient);
    color: var(--white-color);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}
.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}
.hero-section p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 20px auto 30px;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}

/* --- BOTONES --- */
.btn-primary {
    display: inline-block;
    background: var(--white-color);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: backwards;
}
.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 198, 251, 0.4);
}

/* --- SECCIONES Y TARJETAS --- */
.info-section, .services-preview-section, .page-content { padding: 80px 0; }
.services-preview-section { background: var(--light-color); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card, .service-item {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover, .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.service-item { margin-bottom: 20px; }

/* --- FORMULARIOS --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
form button.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 60px 0 20px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: var(--white-color); }
.footer-col a:hover { color: var(--secondary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.newsletter-form button { background: var(--primary-color); }
.social-icons a { font-size: 1.8rem; font-family: sans-serif; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #555; font-size: 0.9em; }

/* --- LEGAL & FAQ --- */
.legal-text h3 { margin-top: 30px; }
.legal-text ul { padding-left: 20px; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { cursor: pointer; }
.faq-answer { display: none; } /* Controlado por JS */

/*
* ===============================================
* --- AQUÍ EMPIEZA EL CSS DE LAS COOKIES ---
* ===============================================
*/
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(33, 37, 41, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--white-color);
    padding: 20px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                visibility 0.6s;
}
.cookie-notice.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.cookie-notice .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-notice p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
}
.cookie-notice button {
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family);
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cookie-notice button:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-section h1 { font-size: 3rem; }
    .main-header .container { flex-direction: column; }
    .main-header nav { margin-top: 15px; }
    .main-header nav ul li { margin: 0 10px; }
    .cookie-notice .container { flex-direction: column; text-align: center; }
    .cookie-notice p { margin-bottom: 15px; }
}