/* General styles */
:root {
    --color-terracotta: #E27B58; /* Terracota */
    --color-ochre: #DAA03D;    /* Ocre */
    --color-azure: #4A90E2;    /* Lazul */
    --color-white: #FFFFFF;    /* Blanco */
    --color-golden: #FFD700;   /* Dorado */
    --color-orange-mosaic: #FF8C00; /* Naranja mosaico Park Güell */
    --color-turquoise-mosaic: #40E0D0; /* Turquesa mosaico Park Güell */
    --color-green-mosaic: #6B8E23;  /* Verde mosaico Park Güell */
    --color-yellow-mosaic: #FFDB58; /* Amarillo mosaico Park Güell */
    --color-stone: #A9A9A9;    /* Piedra */
    --color-ceramic: #D2B48C;   /* Cerámica */
}

body {
    font-family: 'Georgia', serif; /* A more artistic font */
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: var(--color-azure);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-azure), var(--color-terracotta));
    color: var(--color-white);
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    clip-path: ellipse(100% 70% at 50% 30%); /* Organic shape */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Adjust as needed */
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.3));
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--color-white);
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--color-golden);
    transition: width 0.3s ease-in-out;
}

.nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background: var(--color-golden);
}

/* Hero section */
.hero {
    background: linear-gradient(to bottom, var(--color-white), var(--color-ochre) 150%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3em;
    color: var(--color-terracotta);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

.recharge-form-arc {
    background-color: var(--color-white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* Gaudi-style arch */
    padding: 50px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    border: 5px solid var(--color-ochre);
    background-image: radial-gradient(circle at center, var(--color-white) 0%, var(--color-ceramic) 100%);
}

.recharge-form-arc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: radial-gradient(circle, var(--color-golden) 10%, transparent 11%) 0 0 / 15px 15px,
                radial-gradient(circle, var(--color-orange-mosaic) 10%, transparent 11%) 7.5px 7.5px / 15px 15px; /* Trencadís pattern */
    opacity: 0.1;
    z-index: -1;
}

.recharge-form h2 {
    color: var(--color-terracotta);
    margin-bottom: 30px;
    font-size: 2em;
}

.recharge-form input, .recharge-form select, .recharge-form button {
    display: block;
    width: calc(100% - 40px); /* Adjust for padding */
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--color-azure);
    border-radius: 30px; /* Rounded inputs */
    font-size: 1.1em;
    background-color: var(--color-white);
}

.recharge-form button {
    background: linear-gradient(45deg, var(--color-terracotta), var(--color-golden));
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.recharge-form button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.demo-message {
    font-style: italic;
    color: var(--color-terracotta);
    margin-top: 20px;
}

.recharges-counter {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-azure);
    margin-top: 15px;
}

/* Section separators - organic waves */
.hero::after, .operators::after, .advantages::after, .testimonials::after, .cultural-elements::after {
    content: '';
    display: block;
    width: 100%;
    height: 100px; /* Height of the wave */
    background-size: 100% 100px; /* Cover width, keep wave height */
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.hero::after {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C150,100 350,0 600,50 C850,100 1050,0 1200,50 L1200,100 L0,100 Z" fill="%23FFFFFF"></path></svg>');
}

.operators {
    background-color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.operators::after {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C150,0 350,100 600,50 C850,0 1050,100 1200,50 L1200,0 L0,0 Z" fill="%23F0F0F0"></path></svg>'); /* Slightly different wave color */
    bottom: auto;
    top: 0;
}

.operators h2, .advantages h2, .testimonials h2, .cultural-elements h2 {
    font-size: 2.5em;
    color: var(--color-azure);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.operators h2::after,
.advantages h2::after,
.testimonials h2::after,
.cultural-elements h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 5px;
    background: var(--color-golden);
    border-radius: 5px;
    transform: translateX(-50%);
}

.operator-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.operator-list span {
    background-color: var(--color-turquoise-mosaic);
    color: var(--color-white);
    padding: 15px 25px;
    border-radius: 25px; /* Organic shape */
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.operator-list span:hover {
    transform: translateY(-5px);
    background-color: var(--color-orange-mosaic);
}

/* Advantages */
.advantages {
    background-color: #F0F0F0;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-cards .card {
    background-color: var(--color-white);
    border-radius: 20px; /* Rounded corners */
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--color-green-mosaic);
}

.advantage-cards .card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, var(--color-yellow-mosaic) 10%, transparent 11%) 0 0 / 20px 20px,
                radial-gradient(circle, var(--color-terracotta) 10%, transparent 11%) 10px 10px / 20px 20px; /* Trencadís background */
    opacity: 0.05;
    z-index: 0;
}

.advantage-cards .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.advantage-cards .card h3 {
    color: var(--color-terracotta);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.advantage-cards .card .icon {
    font-size: 1.5em; /* For emoji icons */
    margin-right: 10px;
}

.advantage-cards .card p {
    color: #666;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(to top, var(--color-white), var(--color-azure) 150%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 30px; /* More rounded */
    padding: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-style: italic;
    color: #555;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--color-ochre);
}

.testimonial-card::before {
    content: '\201C'; /* Opening quote */
    font-size: 5em;
    color: var(--color-terracotta);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
    z-index: 0;
}

.testimonial-card p {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-card h4 {
    color: var(--color-azure);
    font-weight: bold;
    position: relative;
    z-index: 1;
}

/* Cultural elements */
.cultural-elements {
    background-color: var(--color-ceramic);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.cultural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cultural-item {
    background-color: var(--color-white);
    border-radius: 20px; /* Rounded */
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cultural-item .gaudi-quote {
    font-style: italic;
    color: var(--color-terracotta);
    font-size: 1.1em;
}

.cultural-item .icons img {
    height: 50px;
    margin: 0 15px;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--color-terracotta), var(--color-ochre));
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
    clip-path: ellipse(100% 100% at 50% 100%); /* Organic shape */
    position: relative;
    z-index: 2;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, var(--color-azure) 10%, transparent 11%) 0 0 / 20px 20px,
                radial-gradient(circle, var(--color-white) 10%, transparent 11%) 10px 10px / 20px 20px; /* Azulejo pattern */
    opacity: 0.15;
    z-index: -1;
}

.footer p {
    margin-bottom: 10px;
}

.footer-nav ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav ul li {
    margin: 0 15px 10px;
}

.footer-nav ul li a {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--color-golden);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav ul {
        margin-top: 20px;
    }

    .nav ul li {
        margin: 0 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .recharge-form-arc {
        padding: 30px;
    }

    .operators h2, .advantages h2, .testimonials h2, .cultural-elements h2 {
        font-size: 2em;
    }

    .advantage-cards, .testimonial-grid, .cultural-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav ul {
        flex-direction: column;
    }
}
