/* 
 * Energía Alternativa México - Main Stylesheet
 * Theme: Clean Energy
 * Version: 1.0
 */

/* Base Styles and Variables */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a9dfbf;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --accent-color: #f39c12;
    --text-color: #333333;
    --text-light: #777777;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --border-color: #dddddd;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --font-primary: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 62.5%; /* 10px as base */
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.6rem;
}

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

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

ul, ol {
    margin-bottom: 1.6rem;
    padding-left: 2rem;
}

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

button, .btn {
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem 2.4rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    transition: var(--transition);
}

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

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

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

input, textarea, select {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    margin-bottom: 1.6rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

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

.logo img {
    height: 5rem;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.8rem;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

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

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

/* Hero Section */
.hero, .about-hero, .contact-hero {
    background-color: var(--bg-dark);
    color: white;
    padding: 8rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1, .about-hero h1, .contact-hero h1 {
    color: white;
    margin-bottom: 2rem;
    font-size: 4.8rem;
}

.hero p, .about-hero p, .contact-hero p {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Content Area */
main {
    padding: 5rem 0;
}

/* Blog Posts Grid */
.blog-posts {
    margin-bottom: 5rem;
}

.post-card {
    display: flex;
    margin-bottom: 4rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.post-image {
    flex: 0 0 35%;
}

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

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

.post-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.post-content p {
    margin-bottom: 2rem;
}

/* Sidebar */
.sidebar {
    padding: 0 0 0 4rem;
}

.widget {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
}

.widget h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Newsletter */
.newsletter form {
    display: flex;
    flex-direction: column;
}

.newsletter input {
    margin-bottom: 1.5rem;
}

/* Poll */
.poll-option {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.poll-option input[type="radio"] {
    margin-right: 1rem;
    width: auto;
    margin-bottom: 0;
}

.result-bar {
    margin-bottom: 1.5rem;
}

.result-bar span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-bar .bar {
    height: 2rem;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

/* Full Blog Post */
.blog-post {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
    margin-bottom: 4rem;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.post-header .post-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.post-content h2 {
    font-size: 2.8rem;
    margin-top: 4rem;
}

.post-content h3 {
    font-size: 2.4rem;
    margin-top: 3rem;
}

.post-content h4 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 2rem;
}

.post-content ul li, .post-content ol li {
    margin-bottom: 0.8rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    font-style: italic;
    margin: 2.5rem 0;
    color: var(--text-light);
}

.post-tags {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

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

.post-tags a {
    background-color: var(--bg-light);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts {
    margin-top: 5rem;
}

.related-posts h3 {
    margin-bottom: 2.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post img {
    border-radius: var(--border-radius);
    margin-bottom: 1.2rem;
}

.related-post h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.testimonial {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2.5rem 0;
    box-shadow: var(--box-shadow);
}

.testimonial h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.scholarship-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.scholarship-calendar th, .scholarship-calendar td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.scholarship-calendar th {
    background-color: var(--bg-light);
    font-weight: 600;
}

/* About Us Page */
.about-content {
    margin-bottom: 5rem;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
}

.values-list li {
    display: flex;
    margin-bottom: 2.5rem;
}

.value-icon {
    flex: 0 0 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    margin-right: 2rem;
}

.value-content {
    flex: 1;
}

.value-content h3 {
    margin-bottom: 0.8rem;
}

.our-team {
    margin-bottom: 5rem;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

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

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

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

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

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    padding: 0 2rem;
}

.team-member p {
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

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

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

.testimonials {
    margin-bottom: 5rem;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonials .testimonial {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    flex-grow: 1;
}

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

.testimonial-author img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.testimonial-author h4 {
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: var(--text-light);
    margin-bottom: 0;
}

.partners {
    margin-bottom: 5rem;
    text-align: center;
}

.partners p {
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

.partner {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.partner img {
    max-width: 120px;
    margin: 0 auto 1.5rem;
}

.partner p {
    font-weight: 500;
    margin-bottom: 0;
}

.cta-section {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 5rem;
    text-align: center;
    color: white;
}

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

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-section .btn:hover {
    background-color: var(--bg-dark);
    color: white;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2.5rem;
}

.contact-icon {
    flex: 0 0 5rem;
    height: 5rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.social-connect {
    margin-bottom: 3rem;
}

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

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

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

.contact-form-container {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form {
    margin-top: 2rem;
}

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

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

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
    margin-bottom: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.location-map {
    margin-bottom: 5rem;
}

.location-map h2 {
    margin-bottom: 2.5rem;
}

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

.faq-section {
    margin-bottom: 5rem;
}

.faq-section h2 {
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: var(--bg-light);
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.faq-toggle {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 500px;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    margin: 0 auto 2rem;
}

.thank-you-message h2 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thank-you-message p {
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding-top: 5rem;
}

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

.footer-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 1rem;
}

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

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

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

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

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

.footer-bottom p {
    margin-bottom: 0;
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    color: white;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

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

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-more-info {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.cookie-more-info a {
    color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .container {
        padding: 0 3rem;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-image {
        flex: 0 0 auto;
    }
    
    main {
        display: flex;
        flex-direction: column;
    }
    
    .blog-posts {
        order: 1;
    }
    
    .sidebar {
        order: 2;
        padding: 0;
        margin-top: 5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1.5rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1.5rem;
    }
    
    .hero h1, .about-hero h1, .contact-hero h1 {
        font-size: 3.6rem;
    }
    
    .blog-post {
        padding: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cta-section {
        padding: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero, .about-hero, .contact-hero {
        padding: 6rem 0;
    }
    
    .hero h1, .about-hero h1, .contact-hero h1 {
        font-size: 3.2rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Layout components */
main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    main {
        grid-template-columns: 1fr;
    }
}
