/* ============================================
   ECOpotencia - Estilos Principales
   ============================================ */

:root {
    --primary: #EE8204;
    --secondary: #E74C3C;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --light: #F8F9FA;
    --dark: #2C3E50;
    --white: #FFFFFF;
    --gray: #95A5A6;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #FAF8F2;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid #E8E8E8;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.navbar-brand img {
    max-height: 80px;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    font-weight: 800;
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 60px;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F4F8 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.card-img { 
    width: 300px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}  

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 100px;
    background: rgba(91, 155, 213, 0.1);
    border-radius: 50%;
    z-index: 0;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.0rem;
    color: #2C3E50;
    line-height: 1.2;
}

.hero-title-aux {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #2C3E50;
}

.hero-title .text-primary {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
} 

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.img-fluid {
  margin-top: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: cornsilk; 
}

a {
    text-decoration: none;
    color:rgba(255, 255, 255, 0.7)
  } 

.btn-primary:hover {
    background-color: #4A7BA7;
    border-color: #4A7BA7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
}

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

/* ============================================
   Section Titles
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    background-color: #FFFFFF;
}

.feature-card {
    background: #F8F9FA;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid #E8E8E8;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
}

.feature-card h4 {
    font-weight: 700;
    color: #2C3E50;
    margin: 1rem 0 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    background-color: #F8F9FA;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid #E8E8E8;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
}

.service-card h5 {
    font-weight: 700;
    color: #2C3E50;
    margin: 1rem 0 0.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   Projects Section
   ============================================ */

.projects-section {
    background-color: #FFFFFF;
}

.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

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

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    background: white;
}

.project-info h5 {
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background-color: #F8F9FA;
}

.contact-info {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h6 {
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: #666;
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    border: 1px solid #E8E8E8;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(91, 155, 213, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: #2C3E50;
    border-top: 3px solid var(--primary);
}

.footer h6 {
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary) !important;
}

.social-links {
  display: flex;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

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

/* ============================================
   WhatsApp Button
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* ============================================
   Chatbot
   ============================================ */

.chatbot-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 998;
}

.chatbot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.chatbot-btn:active {
    transform: scale(0.95);
}

.chatbot-window {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1026;
    display: none;
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h5 {
    margin: 0;
    font-weight: 700;
}

.chatbot-header .btn-close {
    filter: brightness(0) invert(1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #F8F9FA;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.user .chat-bubble {
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.bot .chat-bubble {
    background-color: white;
    color: #333;
    border: 1px solid #E8E8E8;
    border-bottom-left-radius: 4px;
}

.chat-input-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #E8E8E8;
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.chat-input-form input {
    flex: 1;
    border: 1px solid #E8E8E8;
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

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

.chat-input-form button {
    padding: 0.5rem 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .chatbot-window {
        width: 100%;
        height: 400px;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .whatsapp-btn,
    .chatbot-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 1rem;
    }

    .whatsapp-btn {
        right: 1rem;
    }

    .chatbot-btn {
        left: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card,
    .service-card,
    .project-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.min-vh-100 {
    min-height: 100vh;
}
