/* style.css - Optimizado para SEO/Velocidad */

/* **[AÑADIDO]** Desplazamiento Suave Nativo para navegación interna */
html {
    scroll-behavior: smooth;
}

/* Variables CSS */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #6c757d; /* Gris oscuro */
    --accent-color: #28a745; /* Verde para acentos */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --dark-blue: #0056b3;
    --whatsapp-color: #25D366; /* Color de WhatsApp */
    --header-height: 80px; /* Para ajustar el desplazamiento y el sticky header */
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 15px;
    text-align: center;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--dark-blue);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease; /* Transición de animación MANTENIDA */
    margin-top: 20px;
    font-size: 1.1em;
}

.btn:hover {
    background: var(--dark-blue);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Header */
header {
    background: var(--white);
    color: var(--text-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Corregido: Mantiene la proporción del logo y usa el ancho del HTML (150px) */
.logo img {
    height: 50px;
    width: 150px; 
    object-fit: contain; /* Asegura que el contenido se ajuste sin distorsionarse */
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease; /* Transición de animación MANTENIDA */
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--white);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--white);
}

/* Sections Generales */
section {
    padding: 40px 0; /* Reducido de 60px a 40px */
    margin-bottom: 0; /* Eliminamos el margen inferior */
}

section:nth-of-type(even) {
    background: var(--light-bg);
}

/* Services Section */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease; /* Transición de animación MANTENIDA */
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.service-item p {
    font-size: 0.95em;
    color: var(--text-color);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease; /* Transición de animación MANTENIDA */
    border: 2px solid transparent;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.pricing-card ul li {
    padding: 8px 0;
    font-size: 1.1em;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card ul li i.fa-check-circle {
    color: var(--accent-color);
    margin-right: 10px;
}

.pricing-card ul li i.fa-times-circle {
    color: #dc3545; /* Rojo para no disponible */
    margin-right: 10px;
}

.pricing-card .price {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* Calendly Section */
.calendly-section {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0;
}
.calendly-section h2, .calendly-section p {
    margin-bottom: 20px;
}

/* Social Media Section */
.social-media {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 0;
}

.social-icons {
    margin-top: 30px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 15px;
    font-size: 2.5em;
    color: var(--primary-color);
    transition: color 0.3s ease; /* Transición de animación MANTENIDA */
}

.social-icons a:hover {
    color: var(--dark-blue);
}

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 0;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transición de animación MANTENIDA */
}

.whatsapp-btn:hover {
    background-color: #1DA851; /* Un verde un poco más oscuro al pasar el mouse */
    transform: scale(1.1);
}

/* Estilo para el enlace del Aviso de Privacidad en el footer */
.footer-link {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 10px;
}
.footer-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Estilos para el Aviso de Privacidad en la página separada (aviso-privacidad.html) */
.legal-page-content {
    padding: 60px 0; /* Un poco más de padding para una página individual */
    max-width: 800px;
    margin: 40px auto;
    line-height: 1.6;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.legal-page-content h2, .legal-page-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}
.legal-page-content p {
    margin-bottom: 15px;
    text-align: justify;
}
.legal-page-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}
.legal-page-content ul li {
    margin-bottom: 5px;
}
.legal-page-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px auto;
    width: 50%;
}


/* Responsive Design (sin menú retráctil) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .service-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1.0); /* Quita el efecto de escala en pantallas pequeñas */
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .social-icons a {
        font-size: 2em;
        margin: 0 10px;
    }
}