/* style.css - Versión optimizada para TecnoAlmonte - Mejoras móvil integradas */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #4d94ff;
    --secondary-color: #004080;
    --accent-color: #00a8ff;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 102, 204, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #003366;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    z-index: 1001;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    transition: var(--transition);
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    z-index: 1001;
}

/* Header de Páginas Internas */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section - Index */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    overflow: hidden;
    margin-top: 70px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.hero-image {
    flex: 1;
    text-align: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Servicios Destacados - Index */
.featured-services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    min-height: 60px;
    color: var(--dark-color);
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-desc {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Por qué elegirnos - Index */
.why-us {
    padding: 100px 0;
}

.why-us .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.why-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

/* Preview Galería - Index */
.gallery-preview {
    background-color: var(--light-gray);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.preview-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.preview-item:hover img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay h3 {
    color: white;
    font-size: 1.5rem;
}

/* CTA */
.cta-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-contact .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta-contact .btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
}

/* Página de Servicios */
.services-categories {
    padding: 80px 0;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.category-link {
    padding: 12px 25px;
    background-color: white;
    border-radius: 50px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-link:hover,
.category-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.service-category {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.category-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--light-gray);
    color: var(--dark-color);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.service-item .service-price {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cta-services {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    text-align: center;
    padding: 60px 0;
    border-radius: 10px;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.cta-services h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.cta-services p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-color);
}

/* Página de Galería */
.gallery-full {
    padding: 80px 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.gallery-filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-overlay p {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Testimonios */
.testimonials {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -15px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Página de Contacto */
.contact-info-full {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.contact-card .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-card p {
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 500;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--gray-color) !important;
    font-weight: normal !important;
    margin-top: 10px;
}

/* Sección de Contacto Directo */
.contact-direct {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.contact-method {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.contact-method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

.contact-method-content {
    padding-left: 65px;
}

.contact-method-content p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.contact-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.horario-info {
    background-color: #e6f2ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.horario-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.horario-info h4 i {
    color: var(--primary-color);
}

.horario-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Redes Sociales */
.social-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.social-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.social-card.facebook i { color: #3b5998; }
.social-card.instagram i { color: #e4405f; }
.social-card.twitter i { color: #1da1f2; }
.social-card.linkedin i { color: #0077b5; }
.social-card.tiktok i { color: #69C9D0; }
.social-card.youtube i { color: #FF0000; }

.social-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.social-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mapa */
.map-section {
    padding: 60px 0 80px;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.map-content {
    text-align: center;
}

.map-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.map-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-column p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li i {
    color: var(--primary-color);
    width: 20px;
}

.footer-column ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.lightbox-close:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-image-container {
    max-height: 70vh;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.lightbox-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.lightbox-description {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== ESTILOS PARA LA PÁGINA NOSOTROS.HTML ===== */
.story-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    border: 3px solid white;
}

.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.team-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.team-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.values-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.value-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.local-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
}

.local-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.local-content {
    text-align: left;
    padding-right: 30px;
}

.local-content .section-title {
    text-align: left;
}

.local-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.local-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
}

.local-content p {
    text-align: left;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--dark-color);
}

.local-content .btn {
    margin-top: 25px;
    display: inline-block;
}

.local-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    height: 100%;
    min-height: 400px;
}

.local-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ESTILOS PARA EL FORMULARIO DE CONTACTO ===== */

.contact-form-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-form-section .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-form-section .section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.form-group label::after {
    content: '*';
    color: #dc3545;
    margin-left: 3px;
}

.form-group label:not([for="privacidad"]):not([for="telefono"]):not([for="email"]):not([for="nombre"])::after {
    content: '';
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
    color: var(--dark-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

.form-group textarea::placeholder {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Estilos para el checkbox de privacidad */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-check label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-color);
    font-weight: normal;
    margin-bottom: 0;
}

.form-check label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-check label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botones del formulario */
.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn-primary {
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-actions .btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.25);
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.form-note i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Estilos para los campos con iconos */
.form-group::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 42px;
    color: var(--primary-color);
    opacity: 0.7;
    pointer-events: none;
}

#nombre::placeholder { font-style: italic; font-size: 0.9rem; }
#telefono::placeholder { font-style: italic; font-size: 0.9rem; }
#email::placeholder { font-style: italic; font-size: 0.9rem; }

/* Select personalizado */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230066cc' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
}

.form-group select option {
    padding: 10px;
    font-size: 0.95rem;
}

/* Estilo para el textarea con scroll personalizado */
.form-group textarea::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== ANIMACIONES PARA EL FORMULARIO ===== */
@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeInForm 0.6s ease-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.2);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

/* ===== ESTADO DE CARGANDO (para el botón) ===== */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ESTILOS PARA MENSAJES DE VALIDACIÓN ===== */
.validation-message {
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    display: none;
}

.validation-message.error {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    display: block;
}

.validation-message.success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* Mensajes de alerta */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
    display: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
}

/* ===== MEJORAS ESPECÍFICAS PARA NOSOTROS.HTML EN MÓVIL ===== */
@media (max-width: 768px) {
    /* MEJORA 1: Imagen más grande en "Nuestra Historia" */
    .story-image img {
        max-height: 500px !important;
        width: 100%;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: var(--shadow-hover);
        margin-top: 20px;
    }
    
    /* MEJORA 2: Contenedor de historia más espaciado */
    .story-container {
        gap: 50px;
        grid-template-columns: 1fr;
    }
    
    /* MEJORA 3: Texto más legible */
    .story-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .story-content .section-title {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .story-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .story-content p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        text-align: justify;
    }
    
    /* MEJORA 4: Ajuste de tarjetas del equipo */
    .team-card {
        margin-bottom: 20px;
        border: 2px solid var(--border-color);
    }
    
    .team-img {
        height: 280px;
    }
    
    .team-info {
        padding: 25px 20px;
    }
    
    .team-desc {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* MEJORA 5: Valores más destacados */
    .value-card {
        padding: 35px 25px;
        margin-bottom: 25px;
        border-top-width: 5px;
    }
    
    .value-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .value-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .value-card p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* MEJORA 6: Sección "Hechos en Almonte" mejorada */
    .local-content .section-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .local-icon {
        font-size: 3.5rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .local-content p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .local-content .btn {
        padding: 14px 35px;
        font-size: 1.05rem;
        margin-top: 25px;
    }
    
    .local-image {
        min-height: 350px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: var(--shadow-hover);
        order: -1;
    }
    
    /* MEJORA 7: Ajustes generales para contenedores */
    .local-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .local-content {
        padding-right: 0;
        text-align: center;
    }
    
    .local-content .section-title {
        text-align: center;
    }
    
    .local-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* ===== RESPONSIVE GENERAL PARA MÓVIL ===== */
    /* MENÚ MÓVIL - TODO COHERENTE */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark-color);
        z-index: 1001;
        order: 2;
        margin-left: auto;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-links a.active::after,
    .nav-links a:hover::after {
        display: none;
    }
    
    .nav-links a.active,
    .nav-links a:hover {
        color: var(--primary-color);
        padding-left: 10px;
    }
    
    .navbar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        transition: var(--transition);
    }
    
    /* AJUSTES DE GRID PARA MÓVIL */
    .services-grid,
    .preview-grid,
    .gallery-grid,
    .testimonials-grid,
    .services-list,
    .contact-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-link {
        width: 100%;
        text-align: center;
    }
    
    .contact-method-content {
        padding-left: 0;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container,
    .why-us .container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* RESPONSIVE PARA FORMULARIO */
    .contact-form-section {
        padding: 60px 0;
    }
    
    .form-container {
        padding: 30px 25px;
        border-radius: 12px;
        margin: 0 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 13px 15px;
        font-size: 0.95rem;
    }
    
    .form-actions .btn-primary {
        padding: 15px 35px;
        font-size: 1rem;
        width: 100%;
    }
    
    .form-note {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .form-check {
        padding: 12px;
    }
    
    .form-check label {
        font-size: 0.9rem;
    }
    
    /* Ajuste contacto directo */
    .contact-method {
        margin-bottom: 20px;
    }
}

/* Para pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {
    .team-img {
        height: 250px;
    }
    
    .story-image img {
        max-height: 450px !important;
    }
    
    .local-image {
        min-height: 300px;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .lightbox-image-container {
        max-height: 50vh;
    }
    
    .lightbox-image {
        max-height: 50vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    /* Formulario en móvil muy pequeño */
    .form-container {
        padding: 25px 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .contact-form-section .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .form-actions .btn-primary {
        padding: 14px 25px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
}

/* Para pantallas medianas (992px) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .why-us .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .local-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Formulario en tablet */
    .form-container {
        padding: 40px;
    }
    
    .form-row {
        gap: 20px;
    }
}

/* Para pantallas grandes (1200px) */
@media (max-width: 1200px) {
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Animaciones */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para las nuevas descripciones detalladas */
.service-desc-detailed {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.service-desc-detailed strong {
    color: var(--dark-color);
    font-weight: 600;
}

.category-intro {
    text-align: center;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mejoras visuales adicionales */
.local-content .btn {
    margin-top: 20px;
}

/* Css para la mejora de la zona de trabajo en contacto.html */

/* Estilos para mapa con Google Maps */
/* ===== ESTILOS PARA MAPA DE GOOGLE COMPLETO ===== */

.map-embed-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch; /* Esto es importante */
}

.map-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CONTENEDOR PRINCIPAL DEL MAPA */
.map-container-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%; /* Toma toda la altura disponible */
    min-height: 500px; /* Altura mínima */
}

/* CONTENEDOR DEL IFRAME */
.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 0; /* Eliminamos el padding que causaba espacios */
}

/* IFRAME RESPONSIVE - Esta es la clave */
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Overlay del marcador */
.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-left: 4px solid var(--primary-color);
    z-index: 10; /* Para que esté sobre el mapa */
}

.map-marker i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.map-marker h4 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.map-marker p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Estilos para las tarjetas de detalles */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex: 1;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.detail-content h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.detail-content p {
    margin: 5px 0;
    color: var(--gray-color);
}

.detail-content .small {
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Zonas de servicio */
.zones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.zone-tag {
    padding: 6px 12px;
    background: #e6f2ff;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

.zone-tag.active {
    background: var(--primary-color);
    color: white;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto; /* Esto empuja los botones hacia abajo */
    padding-top: 20px;
}

.action-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
}

/* Información adicional */
.additional-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 20px;
}

.additional-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.additional-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .map-embed-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container-wrapper {
        min-height: 400px;
        order: -1; /* El mapa primero en móvil */
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .map-container-wrapper {
        min-height: 350px;
    }
    
    .additional-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .additional-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .map-container-wrapper {
        min-height: 300px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .detail-card {
        padding: 20px;
    }
}

/* Estilos para horarios en contacto */
.footer-horario {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-horario h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-horario p {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 5px;
    line-height: 1.4;
}

.small-note {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.small-note i {
    color: var(--primary-color);
    margin-top: 2px;
}

/* Mejora para los horarios en las tarjetas de contacto */
.contact-note {
    font-size: 0.85rem;
    color: var(--gray-color) !important;
    font-weight: normal !important;
    margin-top: 10px;
    line-height: 1.4;
}

/* Ajuste para la sección de información adicional */
.additional-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 20px;
}

.additional-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.additional-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Responsive para información adicional */
@media (max-width: 768px) {
    .additional-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .additional-info p {
        justify-content: center;
    }
}



/* Estilos para el FAQ (ya los tienes en tu CSS) */
.faq-section {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    margin-bottom: 0;
    padding: 0;
}

.faq-item h3:hover {
    color: var(--primary-color);
}

.faq-item i.fa-chevron-down {
    transition: transform 0.3s;
    color: var(--gray-color);
}

.faq-item.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 15px;
    padding: 0 0 10px 0;
}

.faq-answer p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Nota de servicio (para la aclaración en audiovisual) */
.service-note {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    margin-top: 40px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.service-note h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-note h4 i {
    font-size: 1.2em;
}

.service-note ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.service-note ul li {
    margin-bottom: 8px;
    color: var(--dark-color);
    line-height: 1.5;
}

.service-note p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Ajuste específico para el contenedor del formulario de contacto en móvil */
@media (max-width: 768px) {
    .contact-form-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ajuste de márgenes internos del contenedor */
    .contact-form-section .container > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA SERVICIOS.HTML ===== */

/* Tabla comparativa */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.comparison-table tr:hover {
    background-color: #f5f5f5;
}

.comparison-table .check-mark {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}

.comparison-table .x-mark {
    color: #f44336;
    font-weight: bold;
}

.comparison-table .table-price {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.comparison-table tr.table-ideal {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Primera columna (descripciones) alineada a la izquierda */
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    padding-left: 20px;
}

.comparison-table th:first-child {
    text-align: left;
}

/* Asegurar que los headers de los precios estén centrados */
.comparison-table th:not(:first-child) {
    text-align: center;
}

/* Feature comparison */
.feature-comparison {
    margin: 40px 0;
}

.feature-comparison h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

/* Feature item */
.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-desc {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Badges para packs */
.pack-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.pack-badge.basic {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.pack-badge.pro {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.pack-badge.premium {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* Price large */
.price-large {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Price notes */
.price-note {
    background: #e8f4ff;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.price-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.price-note.basic-note {
    background: #e8f5e9;
    border-left-color: #4CAF50;
}

.price-note.pro-note {
    background: #e3f2fd;
    border-left-color: #2196F3;
}

.price-note.premium-note {
    background: #f3e5f5;
    border-left-color: #9c27b0;
}

.price-discount-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.price-discount-list li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.price-note-restauracion {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Notas de servicio mejoradas */
.service-note.digitalization-note {
    margin-top: 40px;
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.service-note.digitalization-note ul {
    margin: 15px 0;
    padding-left: 20px;
}

.service-note.digitalization-note ul li {
    margin-bottom: 8px;
}

.format-consult {
    margin-top: 10px;
    font-style: italic;
    color: var(--gray-color);
}

/* Process note */
.service-note.process-note {
    margin-top: 40px;
    background: #fff3e0;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.process-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.process-header i {
    font-size: 2rem;
    color: #ff9800;
    flex-shrink: 0;
}

.process-header h4 {
    margin-top: 0;
    color: #5d4037;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.process-step {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.process-step h5 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* FAQ section dentro de process-note */
.faq-section {
    background: #e8f4ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.faq-section h5 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.faq-item h6 {
    margin-bottom: 5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h6 i {
    color: var(--primary-color);
}

.faq-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--gray-color);
}

.advantage-note {
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.advantage-note p {
    margin: 0;
    font-style: italic;
    color: var(--dark-color);
}

/* Estilos para nota en audiovisual */
.note-italic {
    margin-top: 10px;
    font-style: italic;
}

/* ===== RESPONSIVE PARA SERVICIOS.HTML ===== */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        min-width: 120px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .pack-badge {
        display: block;
        margin: 10px 0 0 0;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .price-note {
        padding: 15px;
    }
    
    .service-note.process-note {
        padding: 20px;
    }
    
    .process-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
    
    .process-step {
        padding: 15px;
    }
}

/* Estilo para el label de IVA */
.iva-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: normal;
}

/* Estilo para precios con IVA incluido (si decides mantener alguno) */
.price-includes-iva {
    font-size: 0.85rem;
    color: #4CAF50;
    font-style: italic;
}