:root {
    --primary-color: #8bc34a;
    --secondary-color: #1a237e;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Top Bar Styles */
.top-bar {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo .f-letter {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item span {
    font-size: 12px;
    color: var(--light-text);
}

.info-item strong {
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #7cb342;
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    background: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-button:focus {
    outline: none;
}

.social-button i {
    color: #757575;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-button:hover i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
}

.cart-search {
    display: flex;
    gap: 15px;
}

.cart-search a, .cart-search button {
    color: var(--white);
    text-decoration: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.cart .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    color: var(--white);
    transform: translateY(50%);
}

.welcome-text {
    display: inline-block;
    background: var(--secondary-color);
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav button:hover {
    background: var(--primary-color);
}

.slider-nav i {
    color: var(--white);
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.5s linear;
}

/* Services Banner */
.services-banner {
    background: linear-gradient(135deg, var(--primary-color) 50%, var(--secondary-color) 50%);
    padding: 60px 0;
    color: var(--white);
}

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

.contact-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-side {
    max-width: 500px;
}

.service-side h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Expertise Section */
.expertise {
    padding: 80px 0;
    background: #f5f5f5;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.section-header h2 span {
    color: var(--primary-color);
}

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

.expertise-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px dashed #ddd;
}

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

.expertise-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.expertise-card h3 {
    margin-bottom: 15px;
}

/* Latest News Section */
.latest-news {
    padding: 80px 0;
}

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

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

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

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.date span {
    display: block;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
}

.footer-top {
    padding: 80px 0;
}

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

.footer-widget h4 {
    margin-bottom: 20px;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-badges img {
    height: 40px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    z-index: 1000;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    background: #7cb342;
    transform: translateY(-3px);
}

/* Subscription Popup */
/*
.subscription-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.subscription-popup.show {
    display: flex;
}

.popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    animation: popupIn 0.5s ease-out;
}

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

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--light-text);
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-content input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
    */

/* Search Popup */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.search-popup.active {
    display: flex;
}

.search-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .contact-info {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

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

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

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

    .btn-primary {
        padding: 8px 20px;
        font-size: 14px;
    }
}



/* POP UP=====================================================*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content {
    display: flex;
    flex-direction: column;
}

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

.popup-form {
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #ff9800;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #ff9800;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #f57c00;
}

.cancel-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.success-popup {
    text-align: center;
    padding: 40px;
}

.success-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.success-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}
/*
#openPopup {
    padding: 15px 30px;
    background: #ff9800;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
*/
@media (min-width: 768px) {
    .popup-content {
        flex-direction: row;
        height: 500px;/*500*/
    }

    .popup-image {
        width: 50%;
        height: auto;
    }

    .popup-form {
        width: 50%;
    }
}



.social-buttons {
    display: flex;
    gap: 10px;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.social-button:focus {
    outline: none;
}

.social-button i {
    font-style: normal;
    color: #757575;
    font-size: 18px;
    line-height: 40px;
    transition: color 0.3s ease;
}

.social-button:hover i {
    color: #4caf50;
}

.particles {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #4caf50;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #4caf50;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
    transition: all 0.3s ease;
}

.social-button:hover .ring {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #4caf50;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
}

.social-button:hover .pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}





/* Estilos existentes (sin cambios) */

/* Nuevos estilos para el popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .popup {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    animation: slideIn 0.5s ease forwards;
  }
  
  @keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
  }
  
  .popup-content {
    display: flex;
    flex-direction: column;
  }
  
  .popup-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
  }
  
  .popup-form {
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  }
  
  .close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  
  .form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .submit-btn:hover {
    background: var(--secondary-color);
  }
  
  .cancel-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
  }
  
  .success-popup {
    text-align: center;
    padding: 40px;
  }
  
  .success-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
  }
  
  .success-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .success-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
  }
  
  #openPopup {
    padding: 15px 30px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
  }
  
  @media (min-width: 768px) {
    .popup-content {
        flex-direction: row;
        height: 550px;
    }
  
    .popup-image {
        width: 50%;
        height: auto;
    }
  
    .popup-form {
        width: 50%;
    }
  }
  
  /* Estilos responsivos existentes (sin cambios) */
  
  /* Ajustar los estilos del hero slider para las nuevas imágenes */
  .slide {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
  }
  
  