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

:root {
    --primary-color: #00A86B;
    --secondary-color: #005A3D;
    --accent-color: #FFD700;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lang-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-link:hover {
    color: var(--primary-color);
}

.lang-link.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); }
    50% { background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); }
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Servicios */
.servicios {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.servicios .container h2,
.proyectos .container h2,
.contacto .container h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--secondary-color);
}

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

.servicio-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.servicio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servicio-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Sobre Nosotros */
.nosotros {
    padding: 80px 0;
    background-color: var(--white);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.nosotros h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.nosotros-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.nosotros-list {
    list-style: none;
    margin: 2rem 0;
}

.nosotros-list li {
    color: var(--text-dark);
    margin: 0.8rem 0;
    font-weight: 500;
}

.nosotros-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    opacity: 0.95;
}

/* Proyectos */
.proyectos {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.proyecto-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.proyecto-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.proyecto-image.solar {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.proyecto-image.eolica {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
}

.proyecto-image.sostenible {
    background: linear-gradient(135deg, #90EE90 0%, #228B22 100%);
}

.proyecto-card h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.proyecto-card p {
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
}

.proyecto-info {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.videos {
    padding: 80px 0;
    background-color: #F8FCF7;
}

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

.video-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-player {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #000;
}

.video-card h3 {
    color: var(--primary-color);
    padding: 1.2rem 1.5rem 0 1.5rem;
}

.video-card p {
    color: var(--text-light);
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    line-height: 1.6;
}

.project-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.project-summary h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.project-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

.project-summary ul li::before {
    content: "•";
    color: var(--accent-color);
    display: inline-block;
    width: 1rem;
}

/* Contacto */
.contacto {
    padding: 80px 0;
    background-color: var(--white);
}

.contacto .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.submit-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nosotros-content {
        grid-template-columns: 1fr;
    }

    .contacto .container {
        grid-template-columns: 1fr;
    }

    .footer .container {
        grid-template-columns: 1fr;
    }

    .servicios .container h2,
    .proyectos .container h2,
    .contacto .container h2 {
        font-size: 2rem;
    }

    .proyectos-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .nosotros-stats {
        grid-template-columns: 1fr;
    }
}

/* PRICING PAGE STYLES */
.pricing-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.pricing-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.price {
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.price .period {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
}

.features-list li:last-child {
    border-bottom: none;
}

.btn-pricing {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-pricing:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.comparison-table {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.comparison-table h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

#card-element {
    padding: 12px;
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    margin: 1rem 0;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

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

/* FAQ SECTION */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-section h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.faq-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

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

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

/* CTA FINAL */
.cta-final {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-final h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button-large {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-hero h1 {
        font-size: 2rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
    }

    .cta-final h2 {
        font-size: 1.8rem;
    }
}
