/* 
 * Estilos generales para ContaPro
 * Colores: 
 * - Primario: #FF5E00 (naranja)
 * - Secundario: #112A46 (azul oscuro)
 * - Fondo: #FFF8EF (marfil)
 * - Acento: #B9FF00 (lima)
 * - Fuentes: Montserrat, Open Sans
 */

/* Reset y estilos base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFF8EF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #112A46;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FF5E00;
    margin-top: 0.5rem;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    margin-bottom: 1rem;
}

a {
    color: #FF5E00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #112A46;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #666;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #FF5E00;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.25);
}

.btn-primary:hover {
    background-color: #e55400;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 94, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #FF5E00;
    border: 2px solid #FF5E00;
}

.btn-secondary:hover {
    background-color: #FF5E00;
    color: #fff;
}

.btn-cookie-accept {
    background-color: #FF5E00;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
}

.btn-cookie-info {
    background-color: transparent;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #fff;
    margin-left: 0.5rem;
}

.btn-cookie-info:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* Header y navegación */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #112A46;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF5E00;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-highlight {
    color: #FF5E00;
    font-weight: 600;
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #112A46;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.phone-link:hover {
    color: #FF5E00;
}

.phone-link::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF5E00' d='M6.62,10.79C8.06,13.62,10.38,15.94,13.21,17.38L15.41,15.18C15.69,14.9,16.08,14.82,16.43,14.93C17.55,15.3,18.75,15.5,20,15.5A1,1,0,0,1,21,16.5V20A1,1,0,0,1,20,21A17,17,0,0,1,3,4A1,1,0,0,1,4,3H7.5A1,1,0,0,1,8.5,4C8.5,5.25,8.7,6.45,9.07,7.57C9.18,7.92,9.1,8.31,8.82,8.59L6.62,10.79Z'/%3E%3C/svg%3E");
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #112A46;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #112A46;
    color: #fff;
    padding: 1rem;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
}

.cookie-content a {
    color: #B9FF00;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-content a:hover {
    color: #deff80;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #112A46 0%, #1e4673 100%);
    padding: 6rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* About section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.benefits-list {
    margin-top: 1.5rem;
}

.benefits-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.8rem;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF5E00' d='M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* Services section */
.services {
    background-color: #fff;
}

.services-cards {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    color: #112A46;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-card .btn {
    margin: 0 1.5rem 1.5rem;
}

/* Why Us section */
.advantages {
    display: flex;
    gap: 2rem;
}

.advantage {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
}

.advantage:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

.advantage h3 {
    margin-bottom: 1rem;
}

/* Testimonials section */
.testimonials {
    background-color: #112A46;
    color: #fff;
    position: relative;
}

.testimonials h2,
.testimonials .section-description {
    color: #fff;
}

.testimonials h2::after {
    background-color: #B9FF00;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(33.333% - 1.33rem);
    scroll-snap-align: start;
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
}

.testimonial-content::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Georgia', serif;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact section */
.contact {
    background-color: #fff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF5E00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: #112A46;
    color: #FFF8EF;
    padding: 4rem 0 2rem;
}

.footer h3 {
    color: #fff;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #FF5E00;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: #B9FF00;
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: #B9FF00;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries para diseño adaptativo */
@media (max-width: 1200px) {
    .testimonial {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .services-cards {
        flex-wrap: wrap;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 110;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .header-contact {
        display: none;
    }
    
    .services-cards,
    .advantages {
        flex-direction: column;
    }
    
    .advantage {
        max-width: 100%;
    }
    
    .testimonial {
        flex: 0 0 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .service-card {
        flex: 0 0 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
} 