/* llantas-styles.css */
/* Hereda todos los estilos base del archivo original styles.css */
/* Aquí solo incluiremos los estilos específicos para llantas */

:root {
    --color-primary: #ff7700; /* Naranja */
    --color-secondary: #ff7700; /* Azul oscuro */
    --color-dark: #333;
    --color-light: #fff;
    --color-gray: #f5f5f5;
    --color-gray-dark: #ddd;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--color-light);
}

/* ==============================================
   BARRA DE NAVEGACIÓN
   ============================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--color-secondary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    height: 90px;
}
  
.navbar .logo {
    position: absolute;
    left: 5%;
    top: 0;
    text-decoration: none;
    z-index: 1001;
}
  
.nav-links a.active:after {
    width: 100%;
}
  
.navbar .logo img {
    height: 120px;
    width: auto;
    transition: var(--transition-smooth);
}
  
.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
}
  
.nav-links li {
    margin-left: 30px;
}
  
.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 20px;
    position: relative;
}
  
.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-light);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}
  
.nav-links a:hover:after {
    width: 100%;
}
  
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 5%;
    z-index: 1001;
}
  
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    margin: 5px;
    transition: var(--transition-smooth);
}
/* Responsive para barra de navegación */
@media screen and (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .navbar .logo {
        left: 5%;
    }

    .navbar .logo img {
        height: 80px;
    }

    .nav-links {
        position: fixed;
        right: 0;
        left: auto;
        height: 100vh;
        top: 0;
        background-color: var(--color-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        padding: 80px 0 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* Importante: NO poner opacity: 0 aquí */
    .nav-links.nav-active li {
        opacity: 1;
    }

    .hamburger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }
}
/* ==============================================
   HERO CON BUSCADOR - ESPECÍFICO PARA LLANTAS
   ============================================== */
.hero-search {
    height: 100vh;
    width: 100%;
    background-image: url('https://placehold.co/1600x900/154283/fff?text=LLANTAS+BACKGROUND');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
    position: relative;
    overflow: hidden;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.search-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
    color: var(--color-light);
    text-align: center;
}

.search-container h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.search-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.search-box {
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-form {
    flex: 1;
    padding: 30px;
    color: var(--color-dark);
}

.search-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
    font-weight: 600;
    text-align: left;
}

.search-fields {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.field-group {
    flex: 1;
    text-align: left;
}

.field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-dark);
}

.field-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-gray-dark);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--color-light);
    cursor: pointer;
}

.search-button {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    font-weight: 600;
}

.search-button:hover {
    background-color: #e06900;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 119, 0, 0.3);
}

/* Estilos específicos para el ejemplo de llanta */
.search-example {
    width: 350px;
    padding: 30px;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-diagram {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-image {
    margin-bottom: 20px;
}

.wheel-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wheel-info {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--color-light);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
}

/* Responsive para hero con buscador */
@media screen and (max-width: 992px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-example {
        width: 100%;
    }
    
    .wheel-diagram {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .wheel-image {
        margin-bottom: 0;
    }
    
    .wheel-image img {
        width: 150px;
        height: 150px;
    }
    
    .wheel-info {
        flex: 1;
    }
}

@media screen and (max-width: 768px) {
    .hero-search {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .search-container h1 {
        font-size: 2.2rem;
    }
    
    .search-container p {
        font-size: 1rem;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    .search-fields {
        flex-direction: column;
        gap: 15px;
    }
    
    .wheel-diagram {
        flex-direction: column;
    }
    
    .wheel-image img {
        width: 150px;
        height: 150px;
    }
}

/* ==============================================
   RESULTADOS DE BÚSQUEDA - ESPECÍFICO PARA LLANTAS
   ============================================== */
.results-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--color-secondary);
}

.title-underline {
    width: 100px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0 auto;
}

.search-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: var(--color-light);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.search-feedback {
    font-size: 1.1rem;
    color: var(--color-dark);
}

.search-count {
    font-weight: 600;
    color: var(--color-secondary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.result-card {
    background-color: var(--color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.result-card:hover .card-image img {
    transform: scale(1.05) rotate(15deg);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #1A1A1A;
    color: var(--color-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-secondary);
    font-weight: 700;
}

.card-subtitle {
    color: var(--color-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.card-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.spec-label {
    font-weight: 600;
    margin-right: 5px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.meta-item i {
    margin-right: 5px;
    color: var(--color-primary);
}

.card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--color-gray);
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1A;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-iva {
    font-size: 0.75rem;
    color: #666;
    font-weight: normal;
}

.details-button {
    background-color: var(--color-secondary);
    color: var(--color-light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.details-button:hover {
    background-color: var(--color-primary);
}

.loading, 
.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    text-align: center;
}

.loading i,
.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.loading span {
    font-size: 1.2rem;
    color: var(--color-dark);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.no-results p {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive para resultados */
@media screen and (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .search-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 220px;
    }
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: 50px 0 20px;
    position: relative;
}

.footer-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Servicios */
.footer-services {
    flex: 2;
}

.footer-services h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.services-columns {
    display: flex;
    gap: 20px;
}

.services-list {
    list-style: none;
    padding: 0;
    flex: 1;
}

.services-list li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

/* Visítanos */
.footer-visit {
    flex: 1;
}

.footer-visit h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.visit-list {
    list-style: none;
    padding: 0;
}

.visit-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.visit-list i {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Responsive para el footer */
@media screen and (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
    }
    
    .footer-logo {
        flex: 1 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-services, .footer-visit {
        flex: 1 0 45%;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo, .footer-services, .footer-visit {
        flex: 1 0 100%;
        text-align: center;
    }
    
    .services-columns {
        justify-content: center;
    }
    
    .services-list {
        text-align: left;
    }
    
    .visit-list li {
        justify-content: center;
    }
    
    .social-icons {
        margin-top: 20px;
    }
}

@media screen and (max-width: 576px) {
    .services-columns {
        flex-direction: column;
        gap: 0;
    }
}

/* ==============================================
   BOTÓN WHATSAPP
   ============================================== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.whatsapp-text {
    font-size: 14px;
}

/* Responsive para botón whatsapp */
@media screen and (max-width: 576px) {
    .whatsapp-button {
        font-size: 12px;
        padding: 8px 12px;
    }

    .whatsapp-button img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }

    .whatsapp-text {
        font-size: 13px;
    }
}

/* ==============================================
   MODAL - ESPECÍFICO PARA LLANTAS
   ============================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--color-light);
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--color-light);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 20px 30px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.modal-body {
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.modal-image {
    flex: 0 0 350px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.modal-info {
    flex: 1;
}

.info-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 600;
    color: var(--color-dark);
    width: 120px;
}

.info-value {
    color: #666;
    flex: 1;
}

.price-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray);
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.modal-footer {
    padding: 20px 30px;
    background-color: var(--color-gray);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.modal-button {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    border: none;
    font-size: 1rem;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.close-btn {
    background-color: #f5f5f5;
    color: var(--color-dark);
    border: 1px solid #ddd;
    flex: 0 0 150px;
}

.close-btn:hover {
    background-color: #eee;
}

/* Responsive para modal */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 90%;
    }
    
    .modal-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .modal-image {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-button {
        width: 100%;
    }
    
    .close-btn {
        flex: 0 0 auto;
    }
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff7700;
    color: white;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 15px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 2;
}