/* Estilos específicos para la página home */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    backdrop-filter: blur(10px);
    padding: 0rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.logo-img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-logo:hover {
    color: inherit;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #2e7d32;
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section with Swiper */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

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

/* Swiper Navigation */
.swiper-pagination {
    z-index: 3;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #008080;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    z-index: 3;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #008080;
}

/* Sección Servicios */
.servicios-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.section-title {
    color: #008080;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.servicio-card {
    width: 300px;
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.servicio-icon {
    font-size: 3rem;
    color: #008080;
    margin-bottom: 15px;
}

.servicio-card h3 {
    color: #008080;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.servicio-card p {
    color: #555;
    line-height: 1.6;
}

/* Sección Productos */
.productos-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.productos-subtitle {
    margin-bottom: 25px;
    color: #444;
    font-size: 1.5rem;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.producto-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
    background: #fafafa;
}

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

.producto-card strong {
    display: block;
    font-size: 1.2rem;
    color: #008080;
    margin-bottom: 10px;
}

.producto-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.producto-destacado {
    max-width: 400px;
    margin: 0 auto;
    padding: 25px;
    border: 2px solid #008080;
    border-radius: 12px;
    background-color: #f9fef9;
}

.badge-recomendado {
    background: #008080;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.producto-destacado h4 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: #333;
}

.producto-destacado > p {
    color: #555;
    margin-bottom: 15px;
}

.producto-lista {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
}

.producto-lista li {
    margin: 8px 0;
}

.producto-lista li i {
    color: #008080;
    margin-right: 8px;
}

/* Sección Quiénes Somos */
.nosotros-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.nosotros-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.nosotros-imagen {
    flex: 1;
    min-width: 300px;
}

.nosotros-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px #e8f5e9;
}

.nosotros-content {
    flex: 1;
    min-width: 300px;
}

.nosotros-badge {
    color: #008080;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nosotros-title {
    font-size: 2.5rem;
    color: #333;
    margin: 15px 0;
}

.nosotros-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.nosotros-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item h4 {
    color: #008080;
    font-size: 1.8rem;
    margin: 0;
}

.stat-item small {
    color: #777;
    font-weight: bold;
}

/* Responsive para Quiénes Somos */
@media (max-width: 768px) {
    .nosotros-title {
        font-size: 1.8rem;
    }
    
    .nosotros-stats {
        justify-content: center;
    }
}

/* Sección Contacto */
.contacto-section {
    padding: 60px 20px;
    text-align: center;
    background: white;
}

.contacto-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.2);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.form-button {
    padding: 14px 30px;
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-button:hover {
    background-color: #006666;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #008080;
    color: white;
    padding: 3rem 0 0 0;
}

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

.footer-section {
    padding: 1rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 0.5rem;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #4caf50;
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .navbar-logo {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .servicio-card {
        width: 100%;
        max-width: 350px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Botón de Calculadora en el Navbar */
.navbar-menu .btn-calcular {
    background-color: #2e7d32; /* Verde institucional */
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navbar-menu .btn-calcular:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}
