/* Estilos principales para WorldBest News */

/* Variables y Reseteo */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --secondary-color: #f5a623;
    --secondary-dark: #e09600;
    --light-bg: #f5f7fa;
    --dark-bg: #2a2a2a;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --white: #ffffff;
    --black: #000000;
    --border-color: #e1e1e1;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    
    --font-primary: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: Georgia, 'Times New Roman', Times, serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

/* Botones */
.btn, .btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:hover, .btn-small:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

/* Encabezado */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: rgba(30, 136, 229, 0.1);
}

/* Héroe */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 136, 229, 0.8), rgba(30, 136, 229, 0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Características */
.features {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

.feature, .value-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon, .value-icon, .option-icon, .info-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature h3, .value-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Últimos posts */
.latest-posts {
    padding: 80px 0;
}

.latest-posts h2, .features h2, .daily-selection h2, 
.newsletter h2, .blog-content h2, .about-content h2, 
.team-section h2, .contact-content h2, .faq-section h2,
.join-us h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.latest-posts h2:after, .features h2:after, .daily-selection h2:after, 
.newsletter h2:after, .blog-content h2:after, .about-content h2:after, 
.team-section h2:after, .contact-content h2:after, .faq-section h2:after,
.join-us h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

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

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

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.post p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.post .btn-small {
    margin: 0 20px 20px;
}

.center {
    text-align: center;
    margin-top: 40px;
}

/* Selección del día */
.daily-selection {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

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

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

.selection-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.selection-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.selection-item p {
    padding: 0 20px;
    color: var(--text-light);
}

.selection-item .author {
    font-style: italic;
    color: var(--text-lighter);
    text-align: right;
    padding-bottom: 10px;
}

.selection-item .btn-small {
    margin: 15px 20px 20px;
}

/* Boletín */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2:after {
    background-color: var(--white);
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

#email-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

#email-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

#email-form button {
    background-color: var(--secondary-color);
}

#email-form button:hover {
    background-color: var(--secondary-dark);
}

/* Pie de página */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons 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: var(--white);
    transition: var(--transition);
}

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

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

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-column address p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.footer-column address a:hover {
    color: var(--white);
}

.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;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Cookies Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

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

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.cookie-more-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-more-info a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Página de blog */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-content {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 30px 30px 30px 0;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.blog-post h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: left;
}

.blog-post h2:after {
    display: none;
}

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

/* Post individual */
.single-post {
    padding: 60px 0;
}

.single-post .container {
    max-width: 900px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 15px 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    text-align: left;
}

.post-content h2:after {
    display: none;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    background-color: var(--light-bg);
    font-style: italic;
    color: var(--text-color);
}

.post-tags {
    margin: 40px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--light-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.post-share span {
    font-weight: 600;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
    transition: var(--transition);
}

.post-share a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.related-post img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px 15px 10px;
    font-size: 1.1rem;
}

.related-post a {
    display: block;
    padding: 0 15px 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.related-post a:hover {
    color: var(--primary-dark);
}

/* Página Acerca de Nosotros */
.about-content {
    padding: 60px 0;
}

.about-intro {
    margin-bottom: 60px;
}

.about-intro p {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-section {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

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

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

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

.team-member h3 {
    padding: 20px 20px 5px;
    font-size: 1.3rem;
}

.team-member p {
    padding: 0 20px;
    color: var(--text-light);
}

.team-member p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
    transition: var(--transition);
}

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

.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.join-option {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.join-option h3 {
    margin: 20px 0 15px;
    font-size: 1.3rem;
}

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

.social-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Página de Contacto */
.contact-content {
    padding: 60px 0;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-form-container h2, .contact-info h2 {
    text-align: left;
    margin-bottom: 30px;
}

.contact-form-container h2:after, .contact-info h2:after {
    left: 0;
    transform: none;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
}

.info-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

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

.info-content a:hover {
    color: var(--primary-color);
}

.social-contact {
    margin-top: 40px;
}

.social-contact h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.map-container {
    margin-bottom: 60px;
}

.map {
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map iframe {
    border: none;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-lighter);
}

.modal-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

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

.close-btn {
    min-width: 120px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .blog-post img {
        height: 250px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .latest-posts h2, .features h2, .daily-selection h2, 
    .newsletter h2, .blog-content h2, .about-content h2, 
    .team-section h2, .contact-content h2, .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    #email-form {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 90%;
    }
}
