/* Estilos generales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header y navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.nombre-empresa {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    text-transform: uppercase;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-icon {
    font-size: 30px;
}

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(54, 201, 238, 0.6), rgba(45, 58, 243, 0.6)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #bb1010;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Secciones comunes */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sección Marcas */
.marcas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.marca-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.marca-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.marca-card img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.marca-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Sección Productos */
.productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.producto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-card h3 {
    font-size: 1.2rem;
    padding: 1rem 1rem 0;
    color: var(--primary-color);
}

.descripcion {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.precio {
    padding: 0 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

.comprar-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comprar-btn:hover {
    background-color: #2980b9;
}

/* Sección Testimonios */
.testimonios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.testimonio-card:hover {
    transform: translateY(-10px);
}

.testimonio-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonio-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--light-color);
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: -1;
}

.testimonio-autor {
    display: flex;
    align-items: center;
}

.testimonio-autor img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonio-autor h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonio-autor span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sección Ubicación */
.ubicacion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.mapa {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info-ubicacion {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-ubicacion h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-ubicacion p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-ubicacion i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Sección Contacto */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contacto-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.redes-sociales {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.redes-sociales h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

.contacto-info {
    margin-top: 2rem;
}

.contacto-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contacto-info i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background-color: rgba(241, 28, 28, 0.2);
    margin-top: 2rem;
}

.footer-bottom p {
    color: #50a2da;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .ubicacion-container,
    .contacto-container {
        grid-template-columns: 1fr;
    }
    
    .mapa {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hero {
        height: auto;
        padding: 7rem 5% 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .nombre-empresa {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .marcas-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        font-size: 25px;
    }
}

/* Página de Productos */
.header-productos {
    text-align: center;
    padding: 4rem;
    background: rgb(93, 199, 241);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ram {
    text-align: center;
    padding: 0.rem;
    background: rgb(92, 121, 216);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lg {
    text-align: center;
    padding: 1.rem;
    background: rgb(92, 121, 216);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.producto {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px;
}

.producto img {
    max-width: 100%;
    border-radius: 5px;
}

.precio {
    font-weight: bold;
    color: #e63946;
    font-size: 1.2rem;
}

.footer {
    text-align: center;
    padding: 1rem;
    background: #1260f0;
    color: rgb(243, 239, 239);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .productos-container {
        grid-template-columns: 1fr;
    }
}

.whatsapp, .btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-portada {    
    padding: 3px 25px ;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 150px; /* Ancho mínimo para evitar deformación */
}

.btn-productos {
    background: #e6b30f;
    color: rgb(20, 19, 19);
    border: 2px solid #ff6b6b;
}

/* Portada */
.portada {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #b6cef1 0%, #a6c5f7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    max-width: 150px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    margin: 2rem 0;
}

.descripcion {
    font-size: 1.2rem;
    color: #666;
}

.contacto-portada {
    margin: 2rem 0;
}

.whatsapp, .btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.redes-sociales a {
    color: #333;
    font-size: 1.5rem;
    margin: 0 10px;
}

.web {
    display: block;
    margin: 1rem 0;
    color: #555;
}

/* Location Section */
.location {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.location h2 {
    font-size: 2rem; /* Tamaño ajustado para móviles */
    margin-bottom: 20px;
}

.location p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.location iframe {
    width: 100%;
    height: 300px; /* Altura ajustada para móviles */
    border: none;
    border-radius: 10px;
}

iframe {
    height: 450px;
    width: 100%;
    border: none;
    border-radius: 10px;
}