/* ====================== 
   Estilos generales
   ====================== */
:root {
    --primary-color: #1A73E8;
    --secondary-color: #FFCE45;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #FFFFFF;
    --background-alt: #F8F9FA;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0D47A1;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-type: none;
}

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

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--background-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ====================== 
   Botones
   ====================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0D47A1;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

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

.btn-tertiary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    background-color: var(--background-alt);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-text {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    padding: 0;
    background: none;
    border: none;
}

.btn-text:hover {
    color: #0D47A1;
    text-decoration: underline;
}

/* ====================== 
   Cookie Banner
   ====================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.cookie-settings.show {
    display: flex;
}

.cookie-settings-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    padding: 2rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option p {
    margin-top: 0.25rem;
    margin-left: 1.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* ====================== 
   Header
   ====================== */
.header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    z-index: 100;
    padding: 1rem 0;
}

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

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

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}
.main-nav a.btn{
  background-color: #1A73E8;
  color: #fff;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* ====================== 
   Hero
   ====================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 70vh;
    background-color: var(--background-alt);
    padding: 4rem 0;
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

/* ====================== 
   Tarjetas
   ====================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ====================== 
   Features
   ====================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-light);
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-list li svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ====================== 
   Split Content
   ====================== */
.split-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ====================== 
   Testimonials
   ====================== */
.testimonial-section {
    background-color: var(--background-color);
    position: relative;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: var(--background-alt);
    z-index: 0;
}

.testimonials {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.1;
}

.testimonial-content p {
    margin: 1.5rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ====================== 
   CTA Section
   ====================== */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #1A73E8;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #8b8787;
}

.form-group input::placeholder {
    color: #8b8787;
}

.form-group input:focus {
    outline: none;
    border-color: #0D47A1;
}


/* ====================== 
   Footer
   ====================== */
.footer {
    background-color: #242424;
    color: #E0E0E0;
    padding: 4rem 0 2rem;
}

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

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #E0E0E0;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #E0E0E0;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.footer-info {
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* ====================== 
   Media Queries
   ====================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .split-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.show {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.show ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
