/* 
 * Contabilidad Nova - Main Stylesheet
 * Colors:
 * - Dark Blue: #0F3460 (backgrounds, header)
 * - Bright Orange: #FF5722 (buttons, accent elements)
 * - Light Grey: #F5F5F5 (content backgrounds)
 * - White: #FFFFFF (text, form blocks)
 */

/* --- CSS RESET AND BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5F5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #0F3460;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF5722;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SECTIONS COMMON STYLES --- */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #0F3460;
}

section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #FF5722;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- COOKIE CONSENT --- */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #0F3460;
    color: #fff;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    display: block;
    bottom: 0;
    animation: slideUp 0.5s forwards;
}

.cookie-consent.hiding {
    animation: slideDown 1s forwards;
}

@keyframes slideUp {
    from { bottom: -100px; }
    to { bottom: 0; }
}

@keyframes slideDown {
    from { bottom: 0; }
    to { bottom: -100px; }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-right: 20px;
    flex: 1;
}

.cookie-btn {
    background: #FF5722;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cookie-btn:hover {
    background: #E64A19;
}

/* --- HEADER --- */
.site-header {
    background-color: #0F3460;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: white;
    display: flex;
    align-items: center;
}

.logo-text {
    display: inline-block;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* --- NAVIGATION --- */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover {
    color: #FF5722;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF5722;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #0F3460 0%, #162955 100%);
    color: white;
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/dso72k.jpg') center/cover;
    opacity: 0.15;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out forwards;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #FFF;
    animation: fadeIn 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

.hero h2:after {
    display: none;
}

.cta-button {
    margin-top: 30px;
    animation: fadeIn 1.4s ease-out 0.6s forwards;
    opacity: 0;
}

.cta-button a {
    display: inline-block;
    background: #FF5722;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #FF5722;
}

.cta-button a:hover {
    background: transparent;
    color: #FF5722;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.6);
}

/* --- ABOUT SECTION --- */
.about {
    background-color: #FFF;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* --- SERVICES SECTION --- */
.services {
    background: #F5F5F5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: #0F3460;
    font-size: 1.4rem;
}

.service-card p {
    padding: 0 20px 20px;
    flex-grow: 1;
}

.service-link {
    display: block;
    background: #0F3460;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    background: #FF5722;
    color: white;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background: #0F3460;
    color: white;
    position: relative;
}

.testimonials h2 {
    color: white;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-around;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.testimonial p::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -15px;
    top: -20px;
    opacity: 0.3;
}

.testimonial h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #FF5722;
}

.testimonial .company {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* --- WHY CHOOSE US SECTION --- */
.why-us {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    background: white;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    color: #0F3460;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- CONTACT SECTION --- */
.contact {
    background: #F5F5F5;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    color: #0F3460;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.map-placeholder {
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #FF5722;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
    background: white;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
}

button.submit-button {
    background: linear-gradient(135deg, #FF5722, #FF9800);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
}

button.submit-button:hover {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
}

/* --- FOOTER --- */
.site-footer {
    background: #0F3460;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #FF5722;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #FF5722;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* --- RESPONSIVE STYLES --- */
@media screen and (max-width: 768px) {
    /* Header and navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0F3460;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        height: 100vh;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 35px;
    }
    
    /* Various sections */
    .about-content {
        flex-direction: column;
    }
    
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider {
        flex-direction: column;
    }
    
    .testimonial {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    /* Form */
    .contact-form {
        padding: 20px;
    }
    
    .form-group input, .form-group textarea, .form-group select {
        padding: 10px;
    }
    
    button.submit-button {
        padding: 12px;
    }
} 