/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #0e0e0e;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #0066cc;
    margin: 1rem auto;
}

/* Header styles */
.header {
    background-color: rgba(34, 40, 49, 0.9);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background-color: rgba(34, 40, 49, 1);
    padding: 0.7rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo-image {
    height: 50px;
}

.logo-text {
    color: white;
    margin-left: 30px;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #0066cc;
}

.nav a:hover:after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0e0e0e;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #222831;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Estilos mejorados para la sección de Edificios Inteligentes */
.smart-buildings {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 1200px;
}

.smart-buildings-header {
    color: #0066cc;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.smart-buildings-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #0066cc;
}

.smart-buildings-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.smart-buildings-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
}

.smart-buildings-text {
    flex: 1;
}

.smart-buildings-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.smart-buildings-image:hover {
    transform: scale(1.02);
}

.smart-buildings-image img {
    width: 100%;
    height: auto;
    display: block;
}

.key-aspects {
    margin-top: 1.5rem;
}

.key-aspects-title {
    font-size: 1.3rem;
    color: #0e0e0e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.key-aspects-list {
    list-style-type: none;
    padding: 0;
}

.key-aspects-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.key-aspects-list li:before {
    content: "•";
    color: #0066cc;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .smart-buildings-content {
        flex-direction: column-reverse;
    }
    
    .smart-buildings-image {
        margin-bottom: 2rem;
    }
}



/* Styles for the "Para más información" section */
.more-info {
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.more-info h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.more-info p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
}

.more-info a {
    display: inline-block;
    font-size: 1.2em;
    color: #007BFF;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #007BFF;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.more-info a:hover {
    background-color: #007BFF;
    color: #fff;
}

/* Footer styles */
.footer {
    background-color: #0e0e0e;
    color: white;
    padding: 4rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0066cc;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links i {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.social-links a:hover i {
    transform: translateY(-3px);
}

.social-links a:hover .fa-facebook {
    color: #1877f2; /* Azul Facebook */
}

.social-links a:hover .fa-instagram {
    color: #e4405f; /* Rosa Instagram */
}

.social-links a:hover .fa-tiktok {
    color: #69c9d0; /* Azul TikTok */
}

.social-links a:hover .fa-twitter {
    color: #d1d1d1;
}

.social-links a:hover .fa-youtube {
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 0.9rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}
