:root {
    --primary-color: #7580BF;
    --secondary-color: #121D59;
    --light-color: #f5f5f5;
    --dark-color: #0d0d0d;
    --gray-color: #AEB1BF;
    --accent-color: #FFD700;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: var(--secondary-color);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

.container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
    text-align: center;
}

.avatar {
    height: 230px;
    width: 230px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
}

h1 {
    color: var(--light-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    color: var(--gray-color);
    font-weight: normal;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin: 1.5rem 0;
    text-align: center;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem 0;
}

.link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.1rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    background-color: var(--accent-color);
}

.link-icon {
    width: 35px;
    height: 35px;
}

.icon-whatsapp {
    background-image: url('/assets/icons/whatsapp.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.icon-phone {
    background-image: url('/assets/icons/telefono.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.icon-star {
    background-image: url('/assets/icons/estrella.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.link-text {
    font-size: 1.5rem;
    font-weight: bold;
}

section {
    width: 100%;
    max-width: 900px;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.service-card h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: var(--light-color);
    font-size: 1rem;
}

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.testimonial p {
    color: var(--light-color);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonial .author {
    color: var(--gray-color);
    text-align: right;
    font-weight: bold;
}

.rates {
    color: var(--light-color);
}

.rates ul {
    list-style-type: none;
    margin: 1rem 0;
}

.rates li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.rates .price {
    color: var(--accent-color);
    font-weight: bold;
}

.service-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.service-description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

footer {
    width: 100%;
    background-color: var(--dark-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nap a {
    text-decoration: none;
    color: var(--light-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nap a:hover {
    color: var(--accent-color);
}

.nap__phone {
    border-right: 2px solid var(--gray-color);
    padding-right: 1rem;
}

.copyright,
.copyright a {
    color: var(--gray-color);
    text-align: center;
    margin-top: 1rem;
}

.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 999;
}

.call-button img {
    width: 40px;
    height: 40px;
}

.call-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


/* Responsive design */
/* Media query para pantallas grandes */
@media (min-width: 1200px) {
    .services {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1199px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Media query para móviles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .nap {
        flex-direction: column;
        text-align: center;
    }

    .nap__phone {
        border-right: none;
        padding-right: 0;
        border-bottom: 2px solid var(--gray-color);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Styles for legal content pages */
.legal-content {
    color: var(--light-color);
    text-align: left;
}

.legal-content h3 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-all;
    /* Prevents long URLs from overflowing */
}

.legal-content a:hover {
    text-decoration: underline;
}