/* Variables globales */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #3d5af1;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --light-text: #777777;
    --background-color: #ffffff;
    --light-bg: #f7f9fc;
    --border-color: #e5e9f2;
    --success-color: #28a745;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--secondary-color);
}

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

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y navegación */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

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

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

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

.nav-links a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -4px;
    left: 0;
    transition: var(--transition);
}

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

/* Secciones de Hero */
.hero {
    position: relative;
    height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Secciones */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 70px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Tarjetas */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.card-link svg {
    margin-left: 5px;
    transition: var(--transition);
}

.card-link:hover svg {
    transform: translateX(5px);
}

/* Formulario de contacto */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    padding-right: 20px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 24px;
}

.contact-text h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--light-text);
}

.form-control {
    margin-bottom: 20px;
}

.form-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control input, 
.form-control textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control input:focus, 
.form-control textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.form-control textarea {
    height: 150px;
    resize: vertical;
}

/* Página de blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

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

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.post-img {
    height: 200px;
    overflow: hidden;
}

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

.post-card:hover .post-img img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Artículo individual */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 30px;
}

.post-meta span {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.post-meta span svg {
    margin-right: 8px;
}

.post-featured-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 35px 0 18px;
}

.post-body ul, .post-body ol {
    margin: 25px 0;
    padding-left: 40px;
}

/* Custom list markers */
.post-body ul {
    list-style: none;
    padding-left: 20px;
}

.post-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.post-body ol {
    counter-reset: item;
    list-style: none;
    padding-left: 20px;
}

.post-body ol li {
    counter-increment: item;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.post-body ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Página Sobre Nosotros */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.team-section {
    margin: 50px 0;
}

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

.team-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-details {
    padding: 20px;
}

.team-details h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-details p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.team-details .position {
    font-weight: 600;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: white;
    transition: var(--transition);
}

.social-links a.facebook {
    background-color: #3b5998;
}

.social-links a.twitter {
    background-color: #1da1f2;
}

.social-links a.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-links a.linkedin {
    background-color: #0077b5;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

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

.footer-column h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-social 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: white;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-text h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--light-text);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-customize, .btn-decline {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.btn-customize:hover, .btn-decline:hover {
    background-color: var(--light-bg);
}

/* Modal de agradecimiento */
.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.thank-you-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.thank-you-modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.modal-content p {
    margin-bottom: 25px;
}

.close-modal {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--secondary-color);
}

/* Efecto Parallax */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    text-align: center;
    color: white;
}

.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* Media Queries */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .navbar {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin-left: 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
}
