/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #3F3D56;
    background-color: #F8F8F8;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Color Variables */
:root {
    --terracotta: #E27D60;
    --golden-sand: #E8A87C;
    --light-indigo: #C38D9E;
    --light-gray: #F8F8F8;
    --dark-blue: #3F3D56;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #E27D60 0%, #E8A87C 50%, #C38D9E 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--white);
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(63, 61, 86, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
    text-decoration: none;
}

.nav {
    display: none;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--terracotta);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    background-image: url('./img/nFBFJw.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(226, 125, 96, 0.8) 0%, rgba(232, 168, 124, 0.8) 50%, rgba(195, 141, 158, 0.8) 100%);
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--terracotta);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(63, 61, 86, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Pricing Cards Compact */
.pricing-card.card {
    padding: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(63, 61, 86, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

/* Services Section */
.services-list {
    list-style: none;
}

.services-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 2rem;
}

.services-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-weight: bold;
}

/* Pricing Section */
.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-width: 280px;
    margin: 0 auto;
}

.pricing-card.featured {
    transform: scale(1.03);
    border: 2px solid var(--terracotta);
}

#tarifas {
    overflow-x: hidden;
    padding: 2rem 0;
}

#tarifas .container {
    overflow-x: hidden;
    max-width: 900px;
}

#tarifas .grid-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.pricing-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1.5rem 1rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.pricing-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.features {
    list-style: none;
    margin: 1rem 0;
}

.features li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(63, 61, 86, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--terracotta);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-item label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--golden-sand);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 1rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cookie-accept {
    background: var(--terracotta);
    color: var(--white);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-btn:hover {
    opacity: 0.8;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .container {
        padding: 0 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    #tarifas {
        padding: 1.5rem 0;
    }
    
    #tarifas .container {
        max-width: 100%;
    }
    
    #tarifas .grid-3 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        overflow: visible;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        border: 2px solid var(--terracotta);
        margin: 0;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .form-container {
        margin: 0;
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #contacto.section-alt {
        background-attachment: scroll;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .header-content {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 480px) and (max-width: 767px) {
    #tarifas {
        padding: 1.5rem 0;
    }
    
    #tarifas .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1.01);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #tarifas .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .card {
        padding: 2.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Contact Section with Background */
#contacto.section-alt {
    background-image: url('./img/O8VGvu.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#contacto.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 248, 248, 0.95);
}

#contacto .container {
    position: relative;
    z-index: 2;
}

/* Image Styles */
.hero-image {
    display: none;
}

.section-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.feature-image {
    display: none;
}