/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: #f39c12;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 82, 118, 0.85), rgba(41, 128, 185, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231a5276" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.hero-badge {
    display: inline-block;
    background-color: #f39c12;
    color: #1a5276;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Non-profit Banner */
.nonprofit-banner {
    background-color: #27ae60;
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
}

.nonprofit-banner svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro-section {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-section h2 {
    color: #1a5276;
    margin-bottom: 1rem;
}

/* Section Banners */
.section-banner {
    height: 200px;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.section-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.section-banner h3 {
    position: relative;
    font-size: 2rem;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-content h3 {
    color: #1a5276;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.section-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.section-content ul {
    list-style: none;
    padding-left: 0;
}

.section-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.section-content ul li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #f39c12;
}

/* Service Banners */
.banner-servicios {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.banner-mantenimiento {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.banner-instalaciones {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.banner-prevencion {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.banner-riesgos {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.banner-cortocircuitos {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.contact-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.contact-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.contact-item p {
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Privacy Bottom Bar */
.privacy-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.privacy-content svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.privacy-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.privacy-text strong {
    color: #f39c12;
}

.privacy-text a {
    color: #87CEEB;
    text-decoration: none;
    font-weight: 600;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.privacy-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn {
    padding: 0.6rem 1.8rem;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept {
    background-color: white;
    color: #1a5276;
}

.btn-accept:hover {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
}

.btn-reject {
    background-color: transparent;
    color: white;
}

.btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .section-banner {
        height: 150px;
    }

    .section-banner h3 {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .privacy-overlay {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .privacy-buttons {
        justify-content: center;
        width: 100%;
    }
}